mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Merge branch 'master' of https://github.com/xposure/Beef
This commit is contained in:
commit
419fbcdbc7
1 changed files with 3 additions and 1 deletions
|
@ -1120,7 +1120,9 @@ namespace System.Reflection
|
|||
obj = Internal.UnsafeCastToObject(mem);
|
||||
obj.[Friend]mClassVData = (.)(void*)[Friend]mTypeClassVData;
|
||||
#endif
|
||||
Internal.MemSet((uint8*)Internal.UnsafeCastToPtr(obj) + [Friend]mInstSize, 0, [Friend]arraySize - [Friend]mInstSize);
|
||||
//Array1 holds the first element, we only want to set the remaining elements
|
||||
if(count > 1)
|
||||
Internal.MemSet((uint8*)Internal.UnsafeCastToPtr(obj) + [Friend]mInstSize, 0, [Friend]arraySize - [Friend]mInstSize);
|
||||
var array = (Array)obj;
|
||||
array.[Friend]mLength = count;
|
||||
return obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue