65 references to CborAdditionalInfo
System.Formats.Cbor (65)
System\Formats\Cbor\CborInitialByte.cs (3)
45public CborInitialByte(CborMajorType majorType, CborAdditionalInfo additionalInfo) 59public CborAdditionalInfo AdditionalInfo => (CborAdditionalInfo)(InitialByte & AdditionalInformationMask);
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
20if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength)
System\Formats\Cbor\Reader\CborReader.cs (1)
141nextByte.AdditionalInfo != CborAdditionalInfo.IndefiniteLength)
System\Formats\Cbor\Reader\CborReader.Integer.cs (7)
163case CborAdditionalInfo x when (x < CborAdditionalInfo.Additional8BitData): 167case CborAdditionalInfo.Additional8BitData: 171if (result < (int)CborAdditionalInfo.Additional8BitData) 179case CborAdditionalInfo.Additional16BitData: 191case CborAdditionalInfo.Additional32BitData: 203case CborAdditionalInfo.Additional64BitData:
System\Formats\Cbor\Reader\CborReader.Map.cs (1)
35if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (9)
115return (initialByte.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) ? 120return (initialByte.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) ? 133static CborReaderState MapSimpleValueDataToReaderState(CborAdditionalInfo value) 139case (CborAdditionalInfo)CborSimpleValue.Null: 141case (CborAdditionalInfo)CborSimpleValue.True: 142case (CborAdditionalInfo)CborSimpleValue.False: 144case CborAdditionalInfo.Additional16BitData: 146case CborAdditionalInfo.Additional32BitData: 148case CborAdditionalInfo.Additional64BitData:
System\Formats\Cbor\Reader\CborReader.Simple.cs (13)
30case CborAdditionalInfo.Additional16BitData: 37case CborAdditionalInfo.Additional32BitData: 44case CborAdditionalInfo.Additional64BitData: 71case CborAdditionalInfo.Additional16BitData: 78case CborAdditionalInfo.Additional32BitData: 85case CborAdditionalInfo.Additional64BitData: 113(CborAdditionalInfo)CborSimpleValue.False => false, 114(CborAdditionalInfo)CborSimpleValue.True => true, 138case (CborAdditionalInfo)CborSimpleValue.Null: 163case CborAdditionalInfo info when info < CborAdditionalInfo.Additional8BitData: 167case CborAdditionalInfo.Additional8BitData: 171if (value <= (byte)CborAdditionalInfo.IndefiniteLength &&
System\Formats\Cbor\Reader\CborReader.Simple.netcoreapp.cs (3)
30case CborAdditionalInfo.Additional16BitData: 36case CborAdditionalInfo.Additional32BitData: 37case CborAdditionalInfo.Additional64BitData:
System\Formats\Cbor\Reader\CborReader.String.cs (8)
31if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) 66if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) 108if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) 136if (header.AdditionalInfo != CborAdditionalInfo.IndefiniteLength) 176if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) 222if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) 268if (header.AdditionalInfo == CborAdditionalInfo.IndefiniteLength) 303if (header.AdditionalInfo != CborAdditionalInfo.IndefiniteLength)
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
65WriteInitialByte(new CborInitialByte(CborMajorType.Array, CborAdditionalInfo.IndefiniteLength));
System\Formats\Cbor\Writer\CborWriter.cs (1)
377initialByte.AdditionalInfo == CborAdditionalInfo.IndefiniteLength)
System\Formats\Cbor\Writer\CborWriter.Integer.cs (7)
87if (value < (byte)CborAdditionalInfo.Additional8BitData) 90WriteInitialByte(new CborInitialByte(type, (CborAdditionalInfo)value)); 95WriteInitialByte(new CborInitialByte(type, CborAdditionalInfo.Additional8BitData)); 101WriteInitialByte(new CborInitialByte(type, CborAdditionalInfo.Additional16BitData)); 108WriteInitialByte(new CborInitialByte(type, CborAdditionalInfo.Additional32BitData)); 115WriteInitialByte(new CborInitialByte(type, CborAdditionalInfo.Additional64BitData)); 123if (value < (byte)CborAdditionalInfo.Additional8BitData)
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
84WriteInitialByte(new CborInitialByte(CborMajorType.Map, CborAdditionalInfo.IndefiniteLength));
System\Formats\Cbor\Writer\CborWriter.Simple.cs (6)
65WriteInitialByte(new CborInitialByte(CborMajorType.Simple, CborAdditionalInfo.Additional32BitData)); 74WriteInitialByte(new CborInitialByte(CborMajorType.Simple, CborAdditionalInfo.Additional64BitData)); 113if (value < (CborSimpleValue)CborAdditionalInfo.Additional8BitData) 116WriteInitialByte(new CborInitialByte(CborMajorType.Simple, (CborAdditionalInfo)value)); 118else if (value <= (CborSimpleValue)CborAdditionalInfo.IndefiniteLength && 126WriteInitialByte(new CborInitialByte(CborMajorType.Simple, CborAdditionalInfo.Additional8BitData));
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (1)
23WriteInitialByte(new CborInitialByte(CborMajorType.Simple, CborAdditionalInfo.Additional16BitData));
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
88WriteInitialByte(new CborInitialByte(CborMajorType.ByteString, CborAdditionalInfo.IndefiniteLength)); 185WriteInitialByte(new CborInitialByte(CborMajorType.TextString, CborAdditionalInfo.IndefiniteLength));