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