1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 09:27:59 +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()
{
#if BF_OPTSPAN_LENGTH
return OptSpan<uint8>((uint8*)mPtr, mLength * alignof(T));
return OptSpan<uint8>((uint8*)mPtr, mLength * strideof(T));
#else
return OptSpan<uint8>((uint8*)mPtr, 0);
#endif