23 references to TextString
System.Formats.Cbor (23)
System\Formats\Cbor\Reader\CborReader.cs (1)
135case CborMajorType.TextString:
System\Formats\Cbor\Reader\CborReader.PeekState.cs (3)
78case CborMajorType.TextString: return CborReaderState.EndIndefiniteLengthTextString; 100case CborMajorType.TextString: 119case CborMajorType.TextString:
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (1)
90SkipString(type: CborMajorType.TextString);
System\Formats\Cbor\Reader\CborReader.String.cs (10)
174CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 220CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 266CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 301CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.TextString); 314PushDataItem(CborMajorType.TextString, definiteLength: null); 325PopDataItem(CborMajorType.TextString); 378List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.TextString, out int encodingLength, out int concatenatedBufferSize); 413List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.TextString, out int encodingLength, out int _); 485Debug.Assert(type == CborMajorType.ByteString || type == CborMajorType.TextString); 494if (type == CborMajorType.TextString && _isConformanceModeCheckEnabled &&
System\Formats\Cbor\Writer\CborWriter.cs (2)
371case CborMajorType.TextString: 398case CborMajorType.TextString:
System\Formats\Cbor\Writer\CborWriter.String.cs (6)
141WriteUnsignedInteger(CborMajorType.TextString, (ulong)length); 144if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.TextString) 185WriteInitialByte(new CborInitialByte(CborMajorType.TextString, CborAdditionalInfo.IndefiniteLength)); 186PushDataItem(CborMajorType.TextString, definiteLength: null); 193PopDataItem(CborMajorType.TextString); 200Debug.Assert(type == CborMajorType.ByteString || type == CborMajorType.TextString);