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