Replies: 1 comment 2 replies
-
The only way one could do that is using reflection to view the members of a Java However, if you're asking about JNR-FFI viewing and printing the layout of a native Even For example, a block of memory made of 8 bytes could be:
Unless I'm completely wrong or am unaware of something, I believe this is impossible. A struct is nothing more than an abstraction for a specific layout of a block of memory which the programmer declares. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to let jnr-ffi print out the native layout of a struct? Or even better, print the native layout and the contents of a instance of
Struct
.Beta Was this translation helpful? Give feedback.
All reactions