2 writes to Size
PresentationFramework (2)
src\Framework\MS\Internal\Data\RBNode.cs (1)
542
Size
+= delta;
src\Framework\MS\Internal\Data\RBTree.cs (1)
65
Size
= MaxSize;
58 references to Size
PresentationFramework (58)
src\Framework\MS\Internal\Data\LiveShapingBlock.cs (2)
78
int size =
Size
;
442
size=
Size
;
src\Framework\MS\Internal\Data\RBFinger.cs (2)
47
if (finger.Offset == finger.Node.
Size
)
63
finger.Offset = finger.Node.
Size
- 1;
src\Framework\MS\Internal\Data\RBNode.cs (49)
104
else if (index < LeftSize +
Size
)
111
result = new RBFinger<T>() { Node = this, Offset =
Size
, Index = LeftSize +
Size
, Found = false };
114
result = RightChild.FindIndex(index - LeftSize -
Size
, exists);
115
result.Index += LeftSize +
Size
;
137
else if ((compR = comparison(x, GetItemAt(
Size
- 1))) <= 0)
140
int offset = BinarySearch(x, 1,
Size
- 1, comparison, compR, out found);
146
result = new RBFinger<T>() { Node = this, Offset =
Size
, Index = LeftSize +
Size
};
150
result.Index += LeftSize +
Size
;
163
int left=0, right=
Size
;
177
compL = (left <
Size
) ? comparison(x, GetItemAt(left)) : +1;
194
if (LeftSize +
Size
<= low)
200
if (LeftSize +
Size
>= high)
217
int delta = LeftSize +
Size
;
281
if (parent == null || comparison(x, parent.GetItemAt(parent.
Size
-1)) >= 0)
284
nodeIndex = nodeIndex - startingNode.LeftSize - parent.
Size
;
288
int offset = parent.BinarySearch(x, 1, parent.
Size
- 1, comparison, -1, out found);
301
if (newFinger.Offset == newFinger.Node.
Size
)
332
if (newNode.
Size
< MaxSize)
350
if (successor.
Size
< MaxSize)
371
Copy(node, offset + 1, node, offset, node.
Size
- offset - 1);
373
node.SetItemAt(node.
Size
, default(T));
375
if (node.
Size
== 0)
393
return root.InsertNode(index + node.
Size
);
410
index += parent.LeftSize + parent.
Size
;
417
if (
Size
< MaxSize)
420
Copy(this, offset, this, offset + 1,
Size
- offset);
426
Debug.Assert(successor != null && successor.
Size
< MaxSize, "InsertAt: successor should have room");
427
if (successor.
Size
== 0)
447
Debug.Assert(succsucc.
Size
== MaxSize, "InsertAt: outer nodes should be full");
451
Copy(successor, 0, successor, s, successor.
Size
);
455
Copy(succsucc, 0, successor, s + successor.
Size
, s);
470
Copy(successor, offset - (MaxSize - s), successor, offset - (MaxSize - s) + 1, successor.
Size
+ s + s - (offset - (MaxSize - s)));
481
int s = (
Size
+ successor.
Size
+ 1) / 2;
486
Copy(successor, 0, successor, MaxSize - s + 1, successor.
Size
);
496
Copy(successor, 0, successor, MaxSize - s, successor.
Size
);
500
Copy(successor, offset - s, successor, offset - s + 1, successor.
Size
+ MaxSize - offset);
525
Debug.Assert(index >= node.LeftSize + node.
Size
, "InsertNode: index should fall between nodes");
526
node.RightChild = InsertNode(root, node, node.RightChild, index - node.LeftSize - node.
Size
, out newNode);
539
for (int k=
Size
+delta; k<
Size
; ++k)
569
if (index < node.LeftSize || (index == node.LeftSize && node.
Size
> 0))
578
Debug.Assert(!deleteHere || node.
Size
== 0, "DeleteNode: Deleted node should be empty");
601
node.RightChild = DeleteNode(node, node.RightChild, index - node.LeftSize - node.
Size
);
619
node.LeftSize -= leftmost.
Size
;
631
node.LeftSize += this.LeftSize + this.
Size
;
645
this.LeftSize -= node.LeftSize + node.
Size
;
src\Framework\MS\Internal\Data\RBTree.cs (5)
101
else if (node.
Size
< MaxSize)
109
if (successor.
Size
>= MaxSize)
113
successor = InsertNode(finger.Index + node.
Size
- finger.Offset);
551
if (node.
Size
< MaxSize)
553
node.InsertAt(node.
Size
, item);