3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.cs (3)
129_currentMajorType = default; 232_currentMajorType = majorType; 364_currentMajorType = frame.MajorType;
16 references to _currentMajorType
System.Formats.Cbor (16)
System\Formats\Cbor\Reader\CborReader.cs (9)
153if (_currentMajorType is null && _definiteLength is null && _offset > 0) 164switch (_currentMajorType) 172nextByte.MajorType == _currentMajorType.Value && 221type: _currentMajorType, 244if (_currentMajorType is null) 251if (expectedType != _currentMajorType) 253throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType.Value)); 266if (_currentMajorType == CborMajorType.Map) 279if (_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)