3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.cs (3)
112
_currentMajorType
= null;
277
_currentMajorType
= newMajorType;
332
_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;
264
type:
_currentMajorType
,
292
if (typeToPop !=
_currentMajorType
)
294
if (
_currentMajorType
.HasValue)
296
throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)
_currentMajorType
));
346
if (
_currentMajorType
== CborMajorType.Map)
369
switch (
_currentMajorType
)
377
if (initialByte.MajorType !=
_currentMajorType
||
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
44
if (ConvertIndefiniteLengthEncodings &&
_currentMajorType
== CborMajorType.ByteString)
138
if (ConvertIndefiniteLengthEncodings &&
_currentMajorType
== CborMajorType.TextString)