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)
48public int BytesRemaining => _data.Length - _offset; 75int initialOffset = _offset; 81return _data.Slice(initialOffset, _offset - initialOffset); 119if (_offset == _data.Length) 121if (_currentMajorType is null && _definiteLength is null && _offset > 0) 130var nextByte = new CborInitialByte(_data.Span[_offset]); 193_frameOffset = _offset; 253private ReadOnlySpan<byte> GetRemainingBytes() => _data.Span.Slice(_offset); 257Debug.Assert(_offset + length <= _data.Length); 275if (_data.Length - _offset < length) 371offset: _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)
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);