20 instantiations of CborInitialByte
System.Formats.Cbor (20)
System\Formats\Cbor\CborConformanceLevel.cs (2)
253int leftMt = (int)new CborInitialByte(left[0]).MajorType; 254int rightMt = (int)new CborInitialByte(right[0]).MajorType;
System\Formats\Cbor\Reader\CborReader.cs (1)
130var nextByte = new CborInitialByte(_data.Span[_offset]);
System\Formats\Cbor\Reader\CborReader.PeekState.cs (1)
59var initialByte = new CborInitialByte(_data.Span[_offset]);
System\Formats\Cbor\Reader\CborReader.String.cs (1)
471var header = new CborInitialByte(buffer[0]);
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
65WriteInitialByte(new CborInitialByte(CborMajorType.Array, CborAdditionalInfo.IndefiniteLength));
System\Formats\Cbor\Writer\CborWriter.cs (1)
139CborInitialByte initialByte = new CborInitialByte(encodedValue[0]);
System\Formats\Cbor\Writer\CborWriter.Integer.cs (5)
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));
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
84WriteInitialByte(new CborInitialByte(CborMajorType.Map, CborAdditionalInfo.IndefiniteLength));
System\Formats\Cbor\Writer\CborWriter.Simple.cs (4)
65WriteInitialByte(new CborInitialByte(CborMajorType.Simple, CborAdditionalInfo.Additional32BitData)); 74WriteInitialByte(new CborInitialByte(CborMajorType.Simple, CborAdditionalInfo.Additional64BitData)); 116WriteInitialByte(new CborInitialByte(CborMajorType.Simple, (CborAdditionalInfo)value)); 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));
40 references to CborInitialByte
System.Formats.Cbor (40)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
18CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Array);
System\Formats\Cbor\Reader\CborReader.cs (7)
112private CborInitialByte PeekInitialByte() 130var nextByte = new CborInitialByte(_data.Span[_offset]); 139if (nextByte.InitialByte == CborInitialByte.IndefiniteLengthBreakByte || 152private CborInitialByte PeekInitialByte(CborMajorType expectedType) 154CborInitialByte result = PeekInitialByte(); 166CborInitialByte result = PeekInitialByte(); 168if (result.InitialByte != CborInitialByte.IndefiniteLengthBreakByte)
System\Formats\Cbor\Reader\CborReader.Integer.cs (5)
97CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.NegativeInteger); 106CborInitialByte header = PeekInitialByte(); 124CborInitialByte header = PeekInitialByte(); 143private int DecodeDefiniteLength(CborInitialByte header, ReadOnlySpan<byte> data, out int bytesRead) 157private ulong DecodeUnsignedInteger(CborInitialByte header, ReadOnlySpan<byte> data, out int bytesRead)
System\Formats\Cbor\Reader\CborReader.Map.cs (1)
33CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Map);
System\Formats\Cbor\Reader\CborReader.PeekState.cs (2)
59var initialByte = new CborInitialByte(_data.Span[_offset]); 61if (initialByte.InitialByte == CborInitialByte.IndefiniteLengthBreakByte)
System\Formats\Cbor\Reader\CborReader.Simple.cs (5)
24CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Simple); 65CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Simple); 109CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Simple); 134CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Simple); 159CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Simple);
System\Formats\Cbor\Reader\CborReader.Simple.netcoreapp.cs (1)
24CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Simple);
System\Formats\Cbor\Reader\CborReader.String.cs (14)
29CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.ByteString); 64CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.ByteString); 106CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.ByteString); 134CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.ByteString); 174CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 220CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 266CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 301CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 453CborInitialByte nextInitialByte = ReadNextInitialByte(data.Slice(i), type); 455while (nextInitialByte.InitialByte != CborInitialByte.IndefiniteLengthBreakByte) 468static CborInitialByte ReadNextInitialByte(ReadOnlySpan<byte> buffer, CborMajorType expectedType) 471var header = new CborInitialByte(buffer[0]); 473if (header.InitialByte != CborInitialByte.IndefiniteLengthBreakByte && header.MajorType != expectedType) 487CborInitialByte header = PeekInitialByte(expectedType: type);
System\Formats\Cbor\Reader\CborReader.Tag.cs (1)
284CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.Tag);
System\Formats\Cbor\Writer\CborWriter.cs (3)
139CborInitialByte initialByte = new CborInitialByte(encodedValue[0]); 361private void WriteInitialByte(CborInitialByte initialByte) 417_buffer[_offset++] = CborInitialByte.IndefiniteLengthBreakByte;