mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Minor updates to Queue
This commit is contained in:
parent
3714bdb84f
commit
a0210f1d85
1 changed files with 2 additions and 3 deletions
|
@ -53,7 +53,6 @@ namespace System.Collections
|
|||
{
|
||||
Debug.Assert((uint)capacity <= (uint)SizeFlags);
|
||||
T* items = append T[capacity]* (?);
|
||||
mItems = items;
|
||||
mHead = 0;
|
||||
mTail = 0;
|
||||
mSize = 0;
|
||||
|
@ -123,12 +122,12 @@ namespace System.Collections
|
|||
get { return mSize; }
|
||||
}
|
||||
|
||||
protected T* Alloc(int size)
|
||||
protected virtual T* Alloc(int size)
|
||||
{
|
||||
return Internal.AllocRawArrayUnmarked<T>(size);
|
||||
}
|
||||
|
||||
protected void Free(T* val)
|
||||
protected virtual void Free(T* val)
|
||||
{
|
||||
delete (void*)val;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue