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