3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.cs (3)
166
_currentMajorType
= default;
327
_currentMajorType
= majorType;
470
_currentMajorType
= frame.MajorType;
18 references to _currentMajorType
System.Formats.Cbor (18)
System\Formats\Cbor\Reader\CborReader.cs (10)
241
if (
_currentMajorType
is null && _definiteLength is null && _isTagContext)
248
if (
_currentMajorType
is null && _definiteLength is null && (_offset > 0 || _itemsRead > 0))
259
switch (
_currentMajorType
)
267
nextByte.MajorType ==
_currentMajorType
.Value &&
316
type:
_currentMajorType
,
339
if (
_currentMajorType
is null)
346
if (expectedType !=
_currentMajorType
)
348
throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)
_currentMajorType
.Value));
361
if (
_currentMajorType
== CborMajorType.Map)
374
if (
_currentMajorType
== CborMajorType.Map)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
39
switch (
_currentMajorType
)
63
if (
_currentMajorType
is null && _definiteLength is null)
93
switch (
_currentMajorType
)
117
if (_definiteLength is null &&
_currentMajorType
!= null)
120
switch (
_currentMajorType
.Value)
124
if (initialByte.MajorType !=
_currentMajorType
.Value)
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
52
if (
_currentMajorType
is null)
76
if (
_currentMajorType
is null)