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

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -