3 writes to Size
PresentationFramework (3)
MS\Internal\Data\RBNode.cs (2)
539
Size
+= delta;
829
node.
Size
= Int32.Parse(s.Substring(0, index), TypeConverterHelper.InvariantEnglishUS);
MS\Internal\Data\RBTree.cs (1)
62
Size
= MaxSize;
68 references to Size
PresentationFramework (68)
MS\Internal\Data\LiveShapingBlock.cs (2)
75
int size =
Size
;
439
size =
Size
;
MS\Internal\Data\RBFinger.cs (2)
44
if (finger.Offset == finger.Node.
Size
)
60
finger.Offset = finger.Node.
Size
- 1;
MS\Internal\Data\RBNode.cs (59)
101
else if (index < LeftSize +
Size
)
108
result = new RBFinger<T>() { Node = this, Offset =
Size
, Index = LeftSize +
Size
, Found = false };
111
result = RightChild.FindIndex(index - LeftSize -
Size
, exists);
112
result.Index += LeftSize +
Size
;
134
else if ((compR = comparison(x, GetItemAt(
Size
- 1))) <= 0)
137
int offset = BinarySearch(x, 1,
Size
- 1, comparison, compR, out found);
143
result = new RBFinger<T>() { Node = this, Offset =
Size
, Index = LeftSize +
Size
};
147
result.Index += LeftSize +
Size
;
160
int left = 0, right =
Size
;
174
compL = (left <
Size
) ? comparison(x, GetItemAt(left)) : +1;
191
if (LeftSize +
Size
<= low)
197
if (LeftSize +
Size
>= high)
214
int delta = LeftSize +
Size
;
278
if (parent == null || comparison(x, parent.GetItemAt(parent.
Size
- 1)) >= 0)
281
nodeIndex = nodeIndex - startingNode.LeftSize - parent.
Size
;
285
int offset = parent.BinarySearch(x, 1, parent.
Size
- 1, comparison, -1, out found);
298
if (newFinger.Offset == newFinger.Node.
Size
)
329
if (newNode.
Size
< MaxSize)
347
if (successor.
Size
< MaxSize)
368
Copy(node, offset + 1, node, offset, node.
Size
- offset - 1);
370
node.SetItemAt(node.
Size
, default(T));
372
if (node.
Size
== 0)
390
return root.InsertNode(index + node.
Size
);
407
index += parent.LeftSize + parent.
Size
;
414
if (
Size
< MaxSize)
417
Copy(this, offset, this, offset + 1,
Size
- offset);
423
Debug.Assert(successor != null && successor.
Size
< MaxSize, "InsertAt: successor should have room");
424
if (successor.
Size
== 0)
444
Debug.Assert(succsucc.
Size
== MaxSize, "InsertAt: outer nodes should be full");
448
Copy(successor, 0, successor, s, successor.
Size
);
452
Copy(succsucc, 0, successor, s + successor.
Size
, s);
467
Copy(successor, offset - (MaxSize - s), successor, offset - (MaxSize - s) + 1, successor.
Size
+ s + s - (offset - (MaxSize - s)));
478
int s = (
Size
+ successor.
Size
+ 1) / 2;
483
Copy(successor, 0, successor, MaxSize - s + 1, successor.
Size
);
493
Copy(successor, 0, successor, MaxSize - s, successor.
Size
);
497
Copy(successor, offset - s, successor, offset - s + 1, successor.
Size
+ MaxSize - offset);
522
Debug.Assert(index >= node.LeftSize + node.
Size
, "InsertNode: index should fall between nodes");
523
node.RightChild = InsertNode(root, node, node.RightChild, index - node.LeftSize - node.
Size
, out newNode);
536
for (int k =
Size
+ delta; k <
Size
; ++k)
566
if (index < node.LeftSize || (index == node.LeftSize && node.
Size
> 0))
575
Debug.Assert(!deleteHere || node.
Size
== 0, "DeleteNode: Deleted node should be empty");
598
node.RightChild = DeleteNode(node, node.RightChild, index - node.LeftSize - node.
Size
);
616
node.LeftSize -= leftmost.
Size
;
628
node.LeftSize += this.LeftSize + this.
Size
;
642
this.LeftSize -= node.LeftSize + node.
Size
;
726
if (node.
Size
<= 0)
729
if (node.
Size
> MaxSize)
749
for (int k = 1; k < node.
Size
; ++k)
756
for (int j=node.
Size
; j<MaxSize; ++j)
762
size += node.
Size
;
764
maxItem = node.GetItemAt(node.
Size
- 1);
786
sb.Append(node.
Size
);
787
for (int k = 0; k < node.
Size
; ++k)
832
for (int k = 0; k < node.
Size
-1; ++k) // read data
839
node.SetItemAt(node.
Size
- 1, AsT(Int32.Parse(s.Substring(0, index), TypeConverterHelper.InvariantEnglishUS)));
MS\Internal\Data\RBTree.cs (5)
98
else if (node.
Size
< MaxSize)
106
if (successor.
Size
>= MaxSize)
110
successor = InsertNode(finger.Index + node.
Size
- finger.Offset);
545
if (node.
Size
< MaxSize)
547
node.InsertAt(node.
Size
, item);