1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-27 03:58:01 +02:00

Fixed incorrectly spelled List<>.GrowUninitialized

This commit is contained in:
Brian Fiete 2024-09-11 15:32:28 -04:00
parent 04e67007dd
commit 073d55d339
6 changed files with 14 additions and 11 deletions

View file

@ -177,7 +177,7 @@ namespace System.Collections
else
{
int addSize = value - mSize;
Internal.MemSet(GrowUnitialized(addSize), 0, addSize * strideof(T));
Internal.MemSet(GrowUninitialized(addSize), 0, addSize * strideof(T));
}
}
}
@ -434,7 +434,7 @@ namespace System.Collections
}
/// Returns a pointer to the start of the added uninitialized section
public T* GrowUnitialized(int addSize)
public T* GrowUninitialized(int addSize)
{
if (mSize + addSize > AllocSize) EnsureCapacity(mSize + addSize, true);
mSize += (int_cosize)addSize;
@ -446,6 +446,9 @@ namespace System.Collections
return &mItems[mSize - addSize];
}
[Obsolete("Method replaced by GrowUninitialized due to misspelling")]
public T* GrowUnitialized(int addSize) => GrowUninitialized(addSize);
public void Clear()
{
if (mSize > 0)