1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-08 01:05:59 +02:00

Improvements to Queue, to bring it more inline with List

This commit is contained in:
Brian Fiete 2020-03-20 09:26:16 -07:00
parent 69cb6d0208
commit 96c53d4a9e
5 changed files with 238 additions and 88 deletions

View file

@ -219,10 +219,36 @@ DisplayString = "{{ count={mSize} }}"
[[Type.Expand.Item]]
Name = "[Count]"
Value = "mSize"
[[Type.Expand.Item]]
Condition = "__getHighBits(mAllocSizeAndFlags, 1) == 1"
Name = "[AllocSize]"
Value = "__clearHighBits(mAllocSizeAndFlags, 1)"
[[Type.Expand.Item]]
Condition = "__getHighBits(mAllocSizeAndFlags, 1) == 0"
Name = "[InternalSize]"
Value = "__clearHighBits(mAllocSizeAndFlags, 1)"
[Type.Expand.ArrayItems]
Size = "mSize"
ValuePointer = "mItems"
[[Type]]
Name = "System.Collections.Generic.Queue<*>"
DisplayString = "{{ count={mSize} }}"
[[Type.Expand.Item]]
Name = "[Count]"
Value = "mSize"
[[Type.Expand.Item]]
Condition = "__getHighBits(mAllocSizeAndFlags, 1) == 1"
Name = "[AllocSize]"
Value = "__clearHighBits(mAllocSizeAndFlags, 1)"
[[Type.Expand.Item]]
Condition = "__getHighBits(mAllocSizeAndFlags, 1) == 0"
Name = "[InternalSize]"
Value = "__clearHighBits(mAllocSizeAndFlags, 1)"
[Type.Expand.IndexListItems]
Size = "mSize"
ValueNode = "mItems[($i + mHead) % __clearHighBits(mAllocSizeAndFlags, 2)]"
[[Type]]
Name = "System.Collections.Generic.Dictionary<*, *>"
DisplayString = "{{ count={mCount - mFreeCount} }}"