1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00

Minor updates to Queue

This commit is contained in:
Damian Day 2020-05-26 20:29:15 +01:00
parent 3714bdb84f
commit a0210f1d85

View file

@ -53,7 +53,6 @@ namespace System.Collections
{ {
Debug.Assert((uint)capacity <= (uint)SizeFlags); Debug.Assert((uint)capacity <= (uint)SizeFlags);
T* items = append T[capacity]* (?); T* items = append T[capacity]* (?);
mItems = items;
mHead = 0; mHead = 0;
mTail = 0; mTail = 0;
mSize = 0; mSize = 0;
@ -123,12 +122,12 @@ namespace System.Collections
get { return mSize; } get { return mSize; }
} }
protected T* Alloc(int size) protected virtual T* Alloc(int size)
{ {
return Internal.AllocRawArrayUnmarked<T>(size); return Internal.AllocRawArrayUnmarked<T>(size);
} }
protected void Free(T* val) protected virtual void Free(T* val)
{ {
delete (void*)val; delete (void*)val;
} }