8 overrides of Preamble
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
26public override ReadOnlySpan<byte> Preamble => default;
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1739public override ReadOnlySpan<byte> Preamble =>
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1131public override ReadOnlySpan<byte> Preamble =>
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
872public override ReadOnlySpan<byte> Preamble =>
System.Private.Xml (4)
System\Xml\XmlEncoding.cs (4)
329public override ReadOnlySpan<byte> Preamble => [0x00, 0x00, 0xfe, 0xff]; 343public override ReadOnlySpan<byte> Preamble => [0xff, 0xfe, 0x00, 0x00]; 357public override ReadOnlySpan<byte> Preamble => [0x00, 0x00, 0xff, 0xfe]; 371public override ReadOnlySpan<byte> Preamble => [0xfe, 0xff, 0x00, 0x00];
16 references to Preamble
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
94=> !encoding.Preamble.IsEmpty;
System.Console (1)
src\libraries\Common\src\System\Text\ConsoleEncoding.cs (1)
11if (encoding.Preamble.Length == 0)
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
279int preamble = encoding.Preamble.Length;
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
1140ReadOnlySpan<byte> preamble = encoding.Preamble; 1156ReadOnlySpan<byte> preamble = enc.Preamble;
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (6)
174int preambleLength = encoding.Preamble.Length; 549ReadOnlySpan<byte> preamble = _encoding.Preamble; 596Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 700Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1138Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1333Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
291ReadOnlySpan<byte> preamble = _encoding.Preamble;
System.Private.DataContractSerialization (1)
System\Xml\EncodingStreamWrapper.cs (1)
183ReadOnlySpan<byte> bom = _encoding.Preamble;
System.Private.Xml (3)
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
161ReadOnlySpan<byte> bom = _encoding.Preamble;
System\Xml\Core\XmlTextReaderImpl.cs (1)
3196ReadOnlySpan<byte> preamble = _ps.encoding.Preamble;
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
114ReadOnlySpan<byte> bom = _encoding.Preamble;