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)
242
if (
_currentMajorType
is null && _definiteLength is null && (_offset > 0 || _itemsRead > 0))
253
switch (
_currentMajorType
)
261
nextByte.MajorType ==
_currentMajorType
.Value &&
310
type:
_currentMajorType
,
333
if (
_currentMajorType
is null)
340
if (expectedType !=
_currentMajorType
)
342
throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)
_currentMajorType
.Value));
355
if (
_currentMajorType
== CborMajorType.Map)
368
if (
_currentMajorType
== CborMajorType.Map)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
39
switch (
_currentMajorType
)
63
if (
_currentMajorType
is null && _definiteLength is null)
87
switch (
_currentMajorType
)
111
if (_definiteLength is null &&
_currentMajorType
!= null)
114
switch (
_currentMajorType
.Value)
118
if (initialByte.MajorType !=
_currentMajorType
.Value)
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
52
if (
_currentMajorType
is null)
76
if (
_currentMajorType
is null)