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