mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 10:08:00 +02:00
Faster AddRange(Span<T>)
This commit is contained in:
parent
b18ec8ccd3
commit
998cdfae4c
1 changed files with 2 additions and 2 deletions
|
@ -385,8 +385,8 @@ namespace System.Collections
|
||||||
Free(oldPtr);
|
Free(oldPtr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (var val in ref addSpan)
|
Internal.MemCpy(mItems + mSize, addSpan.Ptr, addSpan.Length * alignof(T), alignof(T));
|
||||||
mItems[mSize++] = val;
|
mSize += (.)addSpan.Length;
|
||||||
#if VERSION_LIST
|
#if VERSION_LIST
|
||||||
mVersion++;
|
mVersion++;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue