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)
121
if (
_currentMajorType
is null && _definiteLength is null && _offset > 0)
132
switch (
_currentMajorType
)
140
nextByte.MajorType ==
_currentMajorType
.Value &&
179
type:
_currentMajorType
,
202
if (
_currentMajorType
is null)
209
if (expectedType !=
_currentMajorType
)
211
throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)
_currentMajorType
.Value));
224
if (
_currentMajorType
== CborMajorType.Map)
237
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)