3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.cs (3)
166_currentMajorType = default; 321_currentMajorType = majorType; 464_currentMajorType = frame.MajorType;
17 references to _currentMajorType
System.Formats.Cbor (17)
System\Formats\Cbor\Reader\CborReader.cs (9)
242if (_currentMajorType is null && _definiteLength is null && (_offset > 0 || _itemsRead > 0)) 253switch (_currentMajorType) 261nextByte.MajorType == _currentMajorType.Value && 310type: _currentMajorType, 333if (_currentMajorType is null) 340if (expectedType != _currentMajorType) 342throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType.Value)); 355if (_currentMajorType == CborMajorType.Map) 368if (_currentMajorType == CborMajorType.Map)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
39switch (_currentMajorType) 63if (_currentMajorType is null && _definiteLength is null) 87switch (_currentMajorType) 111if (_definiteLength is null && _currentMajorType != null) 114switch (_currentMajorType.Value) 118if (initialByte.MajorType != _currentMajorType.Value)
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
52if (_currentMajorType is null) 76if (_currentMajorType is null)