You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to booleans being represented as bytes in .NET, bool arrays are read as 4 bytes per bool and written as 1 byte per bool. At fault is possibly MemoryMarshal.Cast casting the bools to 1 byte each, while Marshal.SizeOf<T>() evaluates it as 4 bytes size. Or the opposite is at fault.
The text was updated successfully, but these errors were encountered:
Due to booleans being represented as bytes in .NET, bool arrays are read as 4 bytes per bool and written as 1 byte per bool. At fault is possibly
MemoryMarshal.Cast
casting the bools to 1 byte each, whileMarshal.SizeOf<T>()
evaluates it as 4 bytes size. Or the opposite is at fault.The text was updated successfully, but these errors were encountered: