Saturday, 15 March 2014

java - Copy entire C structure using Unsafe? -


I am searching for Java insecure library, and by now I can see how I differ from one structure I can copy the field by using a serialized byte stream (for example, using getInt () etc.), but if I have the following (pack) structure is serialized:

 < Code> struct foo {int a, b, c; Small D, E, F; };  

Can I copy it from a memory address (in this case Neti ByteBuf example.)? If necessary, I can use JNR, although I can not see how connecting the two so far.


No comments:

Post a Comment