Using MemoryAccess with structured MemoryLayout
Markus KARG
markus at headcrashing.eu
Thu Feb 25 16:01:35 UTC 2021
On Windows, many API function have C struct as parameters.
It is rather straightforward to set up a structured MemoryLayout.
In case I want to easily poke bytes into that struct, I'd like to use
MemoryAccess.
Unfortunately, there seem to be no EASY / SIMPLE way to write:
MemoryAccess.setIntAt(MEMBER_OF_SUCH_A_STRUCT, VALUE_OF_THAT_MEMBER);
.or I missed to see it in the JavaDocs.
Is this possible? If yes, how? If not, why not?
-Markus
More information about the panama-dev
mailing list