Lumina icon indicating copy to clipboard operation
Lumina copied to clipboard

Rework ConvertEndian method to support fixed buffers

Open Taezen opened this issue 3 years ago • 0 comments

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.

Taezen avatar Oct 03 '22 15:10 Taezen