Replace Marshal with Unsafe#336
Conversation
|
I noticed the warning in the documentation. It seems to me that we actually want the size of the unmanaged view of the type? In that case we would need to use Marshal.SizeOf, as it is now. |
|
Partially reverted to the |
|
Should we try using the internal structs version before updating this? #332 (comment) I think using the internal structs would remove the need for this change |
I agree, that would be a better solution. |
|
Closing this because seems to be necessary anymore. Side note:
Seems like they updated the documentation and removed that warning (?). MS now suggets to use |
No description provided.