Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EncodingExtensions.cs
Go to the documentation of this file.
1namespace System.Text;
2
3internal static class EncodingExtensions
4{
5 public static Encoding RemovePreamble(this Encoding encoding)
6 {
7 if (encoding.Preamble.Length == 0)
8 {
9 return encoding;
10 }
11 return new ConsoleEncoding(encoding);
12 }
13}
static Encoding RemovePreamble(this Encoding encoding)
virtual ReadOnlySpan< byte > Preamble
Definition Encoding.cs:347