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)
153
if (
_currentMajorType
is null && _definiteLength is null && _offset > 0)
164
switch (
_currentMajorType
)
172
nextByte.MajorType ==
_currentMajorType
.Value &&
221
type:
_currentMajorType
,
244
if (
_currentMajorType
is null)
251
if (expectedType !=
_currentMajorType
)
253
throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)
_currentMajorType
.Value));
266
if (
_currentMajorType
== CborMajorType.Map)
279
if (
_currentMajorType
== CborMajorType.Map)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
28
switch (
_currentMajorType
)
46
if (
_currentMajorType
is null && _definiteLength is null)
70
switch (
_currentMajorType
)
94
if (_definiteLength is null &&
_currentMajorType
!= null)
97
switch (
_currentMajorType
.Value)
101
if (initialByte.MajorType !=
_currentMajorType
.Value)
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (1)
33
if (
_currentMajorType
is null)