8 writes to _unread
Microsoft.DotNet.Cli.CoreUtils (8)
Resources\SpanReader.cs (8)
50set => _unread = Span[value..]; 79_unread = default; 108_unread = default; 415_unread = default; 434public void Advance(int count) => _unread = _unread[count..]; 465_unread = Span[(Span.Length - _unread.Length - count)..]; 471public void Reset() => _unread = Span; 477UncheckedSlice(ref _unread, count, _unread.Length - count);
30 references to _unread
Microsoft.DotNet.Cli.CoreUtils (30)
Resources\SpanReader.cs (30)
33public readonly ReadOnlySpan<T> Unread => _unread; 38public readonly bool End => _unread.IsEmpty; 49readonly get => Span.Length - _unread.Length; 70if (_unread.IsEmpty) 78span = _unread; 98if (_unread.IsEmpty) 107span = _unread; 139int index = _unread.IndexOf(delimiter); 147span = _unread; 1832 => _unread.IndexOfAny(delimiters[0], delimiters[1]), 184_ => _unread.IndexOfAny(delimiters) 192span = _unread; 218if (_unread.IsEmpty) 226value = _unread[0]; 251if (count > _unread.Length) 259span = _unread[..count]; 298if (sizeof(TValue) > _unread.Length * sizeof(T)) 306value = Unsafe.ReadUnaligned<TValue>(ref Unsafe.As<T, byte>(ref MemoryMarshal.GetReference(_unread))); 346if (sizeof(TValue) * count > _unread.Length * sizeof(T)) 358value = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.As<T, TValue>(ref MemoryMarshal.GetReference(_unread)), count); 374if (_unread.IsEmpty) 380value = _unread[0]; 392if (_unread.StartsWith(next)) 410int index = _unread.IndexOfAnyExcept(value); 414count = _unread.Length; 434public void Advance(int count) => _unread = _unread[count..]; 446if (count < 0 || count > _unread.Length) 465_unread = Span[(Span.Length - _unread.Length - count)..]; 476Debug.Assert((uint)count <= (uint)_unread.Length); 477UncheckedSlice(ref _unread, count, _unread.Length - count);