24 references to TextString
System.Formats.Cbor (24)
System\Formats\Cbor\Reader\CborReader.cs (1)
256
case CborMajorType.
TextString
:
System\Formats\Cbor\Reader\CborReader.PeekState.cs (4)
95
case CborMajorType.
TextString
: return CborReaderState.EndIndefiniteLengthTextString;
117
case CborMajorType.
TextString
:
142
case CborMajorType.
TextString
:
225
case CborMajorType.
TextString
:
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (1)
146
SkipString(type: CborMajorType.
TextString
);
System\Formats\Cbor\Reader\CborReader.String.cs (10)
179
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
225
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
275
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
310
CborInitialByte header = PeekInitialByte(expectedType: CborMajorType.
TextString
);
324
PushDataItem(CborMajorType.
TextString
, definiteLength: null);
335
PopDataItem(CborMajorType.
TextString
);
388
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
TextString
, out int encodingLength, out int concatenatedBufferSize);
423
List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.
TextString
, out int encodingLength, out int _);
497
Debug.Assert(type == CborMajorType.ByteString || type == CborMajorType.
TextString
);
506
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
);