23 references to TextString
System.Formats.Cbor (23)
System\Formats\Cbor\Reader\CborReader.cs (1)
167
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)
175
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
221
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
267
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
302
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
316
PushDataItem(CborMajorType.
TextString
, definiteLength: null);
327
PopDataItem(CborMajorType.
TextString
);
380
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
TextString
, out int encodingLength, out int concatenatedBufferSize);
415
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
TextString
, out int encodingLength, out int _);
489
Debug.Assert(type == CborMajorType.ByteString || type == CborMajorType.
TextString
);
498
if (type == CborMajorType.
TextString
&& _isConformanceModeCheckEnabled &&
System\Formats\Cbor\Writer\CborWriter.cs (2)
423
case CborMajorType.
TextString
:
450
case CborMajorType.
TextString
:
System\Formats\Cbor\Writer\CborWriter.String.cs (6)
137
WriteUnsignedInteger(CborMajorType.
TextString
, (ulong)length);
140
if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.
TextString
)
183
WriteInitialByte(new CborInitialByte(CborMajorType.
TextString
, CborAdditionalInfo.IndefiniteLength));
184
PushDataItem(CborMajorType.
TextString
, definiteLength: null);
191
PopDataItem(CborMajorType.
TextString
);
198
Debug.Assert(type == CborMajorType.ByteString || type == CborMajorType.
TextString
);