23 references to ByteString
System.Formats.Cbor (23)
System\Formats\Cbor\Reader\CborReader.cs (1)
255
case CborMajorType.
ByteString
:
System\Formats\Cbor\Reader\CborReader.PeekState.cs (4)
94
case CborMajorType.
ByteString
: return CborReaderState.EndIndefiniteLengthByteString;
116
case CborMajorType.
ByteString
:
137
case CborMajorType.
ByteString
:
224
case CborMajorType.
ByteString
:
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (1)
142
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
);
110
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
ByteString
);
138
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
ByteString
);
152
PushDataItem(CborMajorType.
ByteString
, definiteLength: null);
163
PopDataItem(CborMajorType.
ByteString
);
342
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
ByteString
, out int encodingLength, out int concatenatedBufferSize);
363
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
ByteString
, out int encodingLength, out int concatenatedBufferSize);
497
Debug.Assert(type == CborMajorType.
ByteString
|| type == CborMajorType.TextString);
System\Formats\Cbor\Writer\CborWriter.cs (2)
422
case CborMajorType.
ByteString
:
449
case CborMajorType.
ByteString
:
System\Formats\Cbor\Writer\CborWriter.String.cs (6)
41
WriteUnsignedInteger(CborMajorType.
ByteString
, (ulong)value.Length);
44
if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.
ByteString
)
87
WriteInitialByte(new CborInitialByte(CborMajorType.
ByteString
, CborAdditionalInfo.IndefiniteLength));
88
PushDataItem(CborMajorType.
ByteString
, definiteLength: null);
95
PopDataItem(CborMajorType.
ByteString
);
198
Debug.Assert(type == CborMajorType.
ByteString
|| type == CborMajorType.TextString);