java - Copy entire C structure using Unsafe? -


i've been exploring java unsafe library, , far can see how can copy individual fields of structure serialized byte stream (for example using getint() etc.), if have following (packed) structure serialized:

struct foo {   int a, b, c;   short d, e, f; }; 

can single copy memory address (in case netty bytebuf instance.)? use jnr if required, though can't quite see how connect 2 yet.


Comments

Popular posts from this blog

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -