3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.cs (3)
112
_currentMajorType
= null;
276
_currentMajorType
= newMajorType;
331
_currentMajorType
= frame.MajorType;
10 references to _currentMajorType
System.Formats.Cbor (10)
System\Formats\Cbor\Writer\CborWriter.cs (8)
57
public bool IsWriteCompleted =>
_currentMajorType
is null && _itemsWritten > 0;
263
type:
_currentMajorType
,
291
if (typeToPop !=
_currentMajorType
)
293
if (
_currentMajorType
.HasValue)
295
throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)
_currentMajorType
));
345
if (
_currentMajorType
== CborMajorType.Map)
368
switch (
_currentMajorType
)
376
if (initialByte.MajorType !=
_currentMajorType
||
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
47
if (ConvertIndefiniteLengthEncodings &&
_currentMajorType
== CborMajorType.ByteString)
144
if (ConvertIndefiniteLengthEncodings &&
_currentMajorType
== CborMajorType.TextString)