19 references to ValidatingUTF8
System.Private.DataContractSerialization (19)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (5)
151
new ArraySegment<byte>(DataContractSerializer.
ValidatingUTF8
.GetBytes(GetEncoding(dataEnc).GetChars(buffer, offset, count)));
288
SupportedEncoding.UTF8 => DataContractSerializer.
ValidatingUTF8
,
309
if (encoding.WebName == DataContractSerializer.
ValidatingUTF8
.WebName)
453
_byteCount = DataContractSerializer.
ValidatingUTF8
.GetBytes(_chars, 0, count, _bytes, 0);
473
_dec = DataContractSerializer.
ValidatingUTF8
.GetDecoder();
System\Xml\EncodingStreamWrapper.cs (7)
94
_byteCount = DataContractSerializer.
ValidatingUTF8
.GetBytes(_chars, 0, count, _bytes, 0);
126
SupportedEncoding.UTF8 => DataContractSerializer.
ValidatingUTF8
,
154
else if (encoding.WebName == DataContractSerializer.
ValidatingUTF8
.WebName)
177
_dec = DataContractSerializer.
ValidatingUTF8
.GetDecoder();
473
bytes = new byte[DataContractSerializer.
ValidatingUTF8
.GetMaxByteCount(ccount)];
474
int bcount = DataContractSerializer.
ValidatingUTF8
.GetBytes(chars, 0, ccount, bytes, 0);
488
seg = new ArraySegment<byte>(DataContractSerializer.
ValidatingUTF8
.GetBytes(GetEncoding(declEnc).GetChars(buffer, offset, count)));
System\Xml\ValueHandle.cs (1)
708
var encoding = DataContractSerializer.
ValidatingUTF8
;
System\Xml\XmlConverter.cs (3)
339
return DataContractSerializer.
ValidatingUTF8
.GetString(buffer, offset, count);
364
return DataContractSerializer.
ValidatingUTF8
.GetBytes(value);
376
return DataContractSerializer.
ValidatingUTF8
.GetChars(buffer, offset, count, chars, charOffset);
System\Xml\XmlStreamNodeWriter.cs (3)
355
return (_encoding ?? DataContractSerializer.
ValidatingUTF8
).GetByteCount(chars, charCount);
384
return (int)(bytes - _bytes) + (_encoding ?? DataContractSerializer.
ValidatingUTF8
).GetBytes(chars, (int)(charsMax - chars), bytes, (int)(bytesMax - bytes));
388
return (_encoding ?? DataContractSerializer.
ValidatingUTF8
).GetBytes(chars, charCount, _bytes, buffer.Length - offset);