21 references to Map
System.Formats.Cbor (21)
System\Formats\Cbor\Reader\CborReader.cs (2)
224
if (_currentMajorType == CborMajorType.
Map
)
237
if (_currentMajorType == CborMajorType.
Map
)
System\Formats\Cbor\Reader\CborReader.Map.cs (5)
33
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
Map
);
43
PushDataItem(CborMajorType.
Map
, null);
58
PushDataItem(CborMajorType.
Map
, 2 * mapSize);
86
PopDataItem(expectedType: CborMajorType.
Map
);
92
PopDataItem(expectedType: CborMajorType.
Map
);
System\Formats\Cbor\Reader\CborReader.PeekState.cs (4)
36
case CborMajorType.
Map
: return CborReaderState.EndMap;
80
case CborMajorType.
Map
when _itemsRead % 2 == 0: return CborReaderState.EndMap;
81
case CborMajorType.
Map
:
125
case CborMajorType.
Map
: return CborReaderState.StartMap;
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
72
Debug.Assert(majorType == CborMajorType.Array || majorType == CborMajorType.
Map
);
System\Formats\Cbor\Writer\CborWriter.cs (4)
319
if (typeToPop == CborMajorType.
Map
)
345
if (_currentMajorType == CborMajorType.
Map
)
404
case CborMajorType.
Map
:
406
PatchIndefiniteLengthCollection(CborMajorType.
Map
, _itemsWritten / 2);
System\Formats\Cbor\Writer\CborWriter.Map.cs (5)
60
PopDataItem(CborMajorType.
Map
);
71
WriteUnsignedInteger(CborMajorType.
Map
, (ulong)definiteLength);
72
PushDataItem(CborMajorType.
Map
, definiteLength: 2 * definiteLength);
84
WriteInitialByte(new CborInitialByte(CborMajorType.
Map
, CborAdditionalInfo.IndefiniteLength));
85
PushDataItem(CborMajorType.
Map
, definiteLength: null);