Lumina
Lumina copied to clipboard
Rework ConvertEndian method to support fixed buffers
This changes the following:
- Converts endianness of fixed buffers properly.
- Gets the right size for managed primitive types (especially bool and char)
- Gets the managed field offset from the CoreCLR FieldDesc class through the FieldHandle
The changes are necessary, because the MemoryMarshaller uses the managed sizes and offsets.