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:
parent
02c2dfbb5c
commit
99dcf4f075
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue