Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetPreamble()

override byte[] System.Text.UnicodeEncoding.GetPreamble ( )
inlinevirtual

Reimplemented from System.Text.Encoding.

Definition at line 1126 of file UnicodeEncoding.cs.

1127 {
1128 if (byteOrderMark)
1129 {
1130 if (!bigEndian)
1131 {
1132 return new byte[2] { 255, 254 };
1133 }
1134 return new byte[2] { 254, 255 };
1135 }
1136 return Array.Empty<byte>();
1137 }

References System.Text.UnicodeEncoding.bigEndian, and System.Text.UnicodeEncoding.byteOrderMark.