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

◆ GetByteCount() [6/7]

unsafe override int System.Text.EncodingNLS.GetByteCount ( string s)
inlinevirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 114 of file EncodingNLS.cs.

115 {
116 if (s == null)
117 {
118 throw new ArgumentNullException("s");
119 }
120 fixed (char* chars = s)
121 {
122 return GetByteCount(chars, s.Length, null);
123 }
124 }
unsafe int GetByteCount(char *chars, int count, System.Text.EncoderNLS encoder)

References System.chars, System.Text.EncodingNLS.GetByteCount(), and System.s.