4 writes to _offset
System.Formats.Cbor (4)
System\Formats\Cbor\Reader\CborReader.cs (4)
94
_offset
= 0;
259
_offset
+= length;
268
_offset
= position;
414
_offset
= checkpoint.Offset;
20 references to _offset
System.Formats.Cbor (20)
System\Formats\Cbor\Reader\CborReader.cs (11)
48
public int BytesRemaining => _data.Length -
_offset
;
75
int initialOffset =
_offset
;
81
return _data.Slice(initialOffset,
_offset
- initialOffset);
119
if (
_offset
== _data.Length)
121
if (_currentMajorType is null && _definiteLength is null &&
_offset
> 0)
130
var nextByte = new CborInitialByte(_data.Span[
_offset
]);
193
_frameOffset =
_offset
;
253
private ReadOnlySpan<byte> GetRemainingBytes() => _data.Span.Slice(
_offset
);
257
Debug.Assert(
_offset
+ length <= _data.Length);
275
if (_data.Length -
_offset
< length)
371
offset:
_offset
,
System\Formats\Cbor\Reader\CborReader.Map.cs (3)
62
_currentKeyOffset =
_offset
;
106
(int Offset, int Length) currentKeyRange = (_currentKeyOffset.Value,
_offset
- _currentKeyOffset.Value);
127
_currentKeyOffset =
_offset
;
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);