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