tgoop.com/madcsharp/16
Create:
Last Update:
Last Update:
An article on getting field offset of struct or class object, and how to make it cross-runtime, so it works in Unity (Mono/IL2CPP) and real dotnets.
Field offsets are good stuff to read/write fields without incurring into reflection, so we can avoid TypedReferences (not supported in IL2CPP) and also we avoid GC allocations for fieldInfo.SetValue(object target, object value), if both target and value are structs that's two boxing operations!
Let's dive in!
https://meetemq.com/2023/09/10/nets-fields-and-their-offsets/
BY MadSharp: Unsafe
Share with your friend now:
tgoop.com/madcsharp/16