1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 17:28:00 +02:00

Fixed ToRawData size issue

This commit is contained in:
Brian Fiete 2023-07-07 17:21:19 -04:00
parent 02c2dfbb5c
commit 99dcf4f075

View file

@ -606,7 +606,7 @@ namespace System
public OptSpan<uint8> ToRawData() public OptSpan<uint8> ToRawData()
{ {
#if BF_OPTSPAN_LENGTH #if BF_OPTSPAN_LENGTH
return OptSpan<uint8>((uint8*)mPtr, mLength * alignof(T)); return OptSpan<uint8>((uint8*)mPtr, mLength * strideof(T));
#else #else
return OptSpan<uint8>((uint8*)mPtr, 0); return OptSpan<uint8>((uint8*)mPtr, 0);
#endif #endif