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