22 references to ByteString
System.Formats.Cbor (22)
System\Formats\Cbor\Reader\CborReader.cs (1)
134
case CborMajorType.
ByteString
:
System\Formats\Cbor\Reader\CborReader.PeekState.cs (3)
77
case CborMajorType.
ByteString
: return CborReaderState.EndIndefiniteLengthByteString;
99
case CborMajorType.
ByteString
:
114
case CborMajorType.
ByteString
:
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (1)
86
SkipString(type: CborMajorType.
ByteString
);
System\Formats\Cbor\Reader\CborReader.String.cs (9)
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
);
147
PushDataItem(CborMajorType.
ByteString
, definiteLength: null);
158
PopDataItem(CborMajorType.
ByteString
);
332
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
ByteString
, out int encodingLength, out int concatenatedBufferSize);
353
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
ByteString
, out int encodingLength, out int concatenatedBufferSize);
485
Debug.Assert(type == CborMajorType.
ByteString
|| type == CborMajorType.TextString);
System\Formats\Cbor\Writer\CborWriter.cs (2)
370
case CborMajorType.
ByteString
:
397
case CborMajorType.
ByteString
:
System\Formats\Cbor\Writer\CborWriter.String.cs (6)
44
WriteUnsignedInteger(CborMajorType.
ByteString
, (ulong)value.Length);
47
if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.
ByteString
)
88
WriteInitialByte(new CborInitialByte(CborMajorType.
ByteString
, CborAdditionalInfo.IndefiniteLength));
89
PushDataItem(CborMajorType.
ByteString
, definiteLength: null);
96
PopDataItem(CborMajorType.
ByteString
);
200
Debug.Assert(type == CborMajorType.
ByteString
|| type == CborMajorType.TextString);