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