7 writes to _length
Microsoft.AspNetCore.Razor.Utilities.Shared (7)
MemoryBuilder`1.cs (7)
46
_length
= 0;
61
_length
= value;
87
_length
= index + 1;
104
_length
= index + 1;
119
_length
= index + 1;
131
_length
+= source.Length;
187
_length
--;
11 references to _length
Microsoft.AspNetCore.Razor.Utilities.Shared (11)
MemoryBuilder`1.cs (11)
51
public readonly bool IsEmpty =>
_length
== 0;
55
readonly get =>
_length
;
69
Debug.Assert(index >= 0 && index <
_length
);
76
=> _memory[..
_length
];
81
var index =
_length
;
98
var index =
_length
;
115
Debug.Assert(
_length
== _memory.Length);
116
var index =
_length
;
125
if ((uint)(
_length
+ source.Length) > (uint)_memory.Length)
127
Grow(_memory.Length -
_length
+ source.Length);
130
source.CopyTo(_memory.Span[
_length
..]);