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);
|
||||
return;
|
||||
}
|
||||
for (var val in ref addSpan)
|
||||
mItems[mSize++] = val;
|
||||
Internal.MemCpy(mItems + mSize, addSpan.Ptr, addSpan.Length * alignof(T), alignof(T));
|
||||
mSize += (.)addSpan.Length;
|
||||
#if VERSION_LIST
|
||||
mVersion++;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue