12 writes to _pos
Microsoft.AspNetCore.WebSockets (12)
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (12)
22
_pos
= 0;
29
_pos
= 0;
39
_pos
= value;
145
_pos
+= count;
165
_pos
+= count;
175
_pos
= pos + 1;
195
_pos
= pos + 1;
212
_pos
+= s.Length;
227
_pos
+= count;
243
_pos
+= length;
255
_pos
+= value.Length;
267
_pos
= origPos + length;
27 references to _pos
Microsoft.AspNetCore.WebSockets (27)
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (27)
34
get =>
_pos
;
53
Grow(capacity -
_pos
);
86
Debug.Assert(index <
_pos
);
93
string s = _chars.Slice(0,
_pos
).ToString();
112
return _chars.Slice(0,
_pos
);
115
public ReadOnlySpan<char> AsSpan() => _chars.Slice(0,
_pos
);
116
public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start,
_pos
- start);
121
if (_chars.Slice(0,
_pos
).TryCopyTo(destination))
123
charsWritten =
_pos
;
137
if (
_pos
> _chars.Length - count)
142
int remaining =
_pos
- index;
157
if (
_pos
> (_chars.Length - count))
162
int remaining =
_pos
- index;
171
int pos =
_pos
;
191
int pos =
_pos
;
205
int pos =
_pos
;
217
if (
_pos
> _chars.Length - count)
222
Span<char> dst = _chars.Slice(
_pos
, count);
232
int pos =
_pos
;
238
Span<char> dst = _chars.Slice(
_pos
, length);
248
int pos =
_pos
;
254
value.CopyTo(_chars.Slice(
_pos
));
261
int origPos =
_pos
;
281
/// <see cref="
_pos
"/> whichever is greater.
290
Debug.Assert(
_pos
> _chars.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed.");
293
char[] poolArray = ArrayPool<char>.Shared.Rent((int)Math.Max((uint)(
_pos
+ additionalCapacityBeyondPos), (uint)_chars.Length * 2));
295
_chars.Slice(0,
_pos
).CopyTo(poolArray);