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
Post a Comment