6 writes to _unread
Microsoft.Private.Windows.Core (6)
System\SpanReader.cs (6)
27
set =>
_unread
= Span[value..];
226
_unread
= default;
241
public void Advance(int count) =>
_unread
= _unread[count..];
246
public void Rewind(int count) =>
_unread
= Span[(Span.Length - _unread.Length - count)..];
251
public void Reset() =>
_unread
= Span;
261
UncheckedSlice(ref
_unread
, count, _unread.Length - count);
19 references to _unread
Microsoft.Private.Windows.Core (19)
System\SpanReader.cs (19)
26
readonly get => Span.Length -
_unread
.Length;
48
int index =
_unread
.IndexOf(delimiter);
56
span =
_unread
;
77
if (
_unread
.IsEmpty)
85
value =
_unread
[0];
99
if (count >
_unread
.Length)
107
span =
_unread
[..count];
136
if (sizeof(TValue) >
_unread
.Length * sizeof(T))
144
value = Unsafe.ReadUnaligned<TValue>(ref Unsafe.As<T, byte>(ref MemoryMarshal.GetReference(
_unread
)));
170
if (sizeof(TValue) * count >
_unread
.Length * sizeof(T))
179
ReadOnlySpan<T> current =
_unread
[..(sizeof(TValue) / sizeof(T) * count)];
194
public readonly bool IsNext(params ReadOnlySpan<T> next) =>
_unread
.StartsWith(next);
204
if (
_unread
.StartsWith(next))
221
int index =
_unread
.IndexOfAnyExcept(value);
225
count =
_unread
.Length;
241
public void Advance(int count) => _unread =
_unread
[count..];
246
public void Rewind(int count) => _unread = Span[(Span.Length -
_unread
.Length - count)..];
260
Debug.Assert((uint)count <= (uint)
_unread
.Length);
261
UncheckedSlice(ref _unread, count,
_unread
.Length - count);