3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.cs (3)
97_currentMajorType = default; 190_currentMajorType = majorType; 322_currentMajorType = frame.MajorType;
16 references to _currentMajorType
System.Formats.Cbor (16)
System\Formats\Cbor\Reader\CborReader.cs (9)
121if (_currentMajorType is null && _definiteLength is null && _offset > 0) 132switch (_currentMajorType) 140nextByte.MajorType == _currentMajorType.Value && 179type: _currentMajorType, 202if (_currentMajorType is null) 209if (expectedType != _currentMajorType) 211throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType.Value)); 224if (_currentMajorType == CborMajorType.Map) 237if (_currentMajorType == CborMajorType.Map)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
28switch (_currentMajorType) 46if (_currentMajorType is null && _definiteLength is null) 70switch (_currentMajorType) 94if (_definiteLength is null && _currentMajorType != null) 97switch (_currentMajorType.Value) 101if (initialByte.MajorType != _currentMajorType.Value)
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (1)
33if (_currentMajorType is null)