2 writes to _data
System.Formats.Cbor (2)
System\Formats\Cbor\Reader\CborReader.cs (2)
60_data = data; 93_data = data;
16 references to _data
System.Formats.Cbor (16)
System\Formats\Cbor\Reader\CborReader.cs (8)
48public int BytesRemaining => _data.Length - _offset; 81return _data.Slice(initialOffset, _offset - initialOffset); 119if (_offset == _data.Length) 130var nextByte = new CborInitialByte(_data.Span[_offset]); 253private ReadOnlySpan<byte> GetRemainingBytes() => _data.Span.Slice(_offset); 257Debug.Assert(_offset + length <= _data.Length); 266Debug.Assert(position <= _data.Length); 275if (_data.Length - _offset < length)
System\Formats\Cbor\Reader\CborReader.Map.cs (2)
138ReadOnlySpan<byte> buffer = _data.Span; 210return _reader._data.Span.Slice(range.Offset, range.Length);
System\Formats\Cbor\Reader\CborReader.PeekState.cs (2)
43if (_offset == _data.Length) 59var initialByte = new CborInitialByte(_data.Span[_offset]);
System\Formats\Cbor\Reader\CborReader.Simple.cs (1)
169byte value = _data.Span[_offset + 1];
System\Formats\Cbor\Reader\CborReader.String.cs (3)
117ReadOnlyMemory<byte> byteSlice = _data.Slice(_offset + bytesRead, length); 277ReadOnlyMemory<byte> encodedSlice = _data.Slice(_offset + bytesRead, byteLength); 390string output = CborHelpers.BuildStringFromIndefiniteLengthTextString(concatenatedStringSize, (ranges, _data.Slice(_offset), utf8Encoding), BuildString);