3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.cs (3)
166_currentMajorType = default; 327_currentMajorType = majorType; 470_currentMajorType = frame.MajorType;
18 references to _currentMajorType
System.Formats.Cbor (18)
System\Formats\Cbor\Reader\CborReader.cs (10)
241if (_currentMajorType is null && _definiteLength is null && _isTagContext) 248if (_currentMajorType is null && _definiteLength is null && (_offset > 0 || _itemsRead > 0)) 259switch (_currentMajorType) 267nextByte.MajorType == _currentMajorType.Value && 316type: _currentMajorType, 339if (_currentMajorType is null) 346if (expectedType != _currentMajorType) 348throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType.Value)); 361if (_currentMajorType == CborMajorType.Map) 374if (_currentMajorType == CborMajorType.Map)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
39switch (_currentMajorType) 63if (_currentMajorType is null && _definiteLength is null) 93switch (_currentMajorType) 117if (_definiteLength is null && _currentMajorType != null) 120switch (_currentMajorType.Value) 124if (initialByte.MajorType != _currentMajorType.Value)
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
52if (_currentMajorType is null) 76if (_currentMajorType is null)