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

◆ GetByteCount() [6/7]

unsafe override int System.Text.UnicodeEncoding.GetByteCount ( string s)
inlinevirtual

Reimplemented from System.Text.Encoding.

Definition at line 135 of file UnicodeEncoding.cs.

136 {
137 if (s == null)
138 {
139 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
140 }
141 fixed (char* pChars = s)
142 {
143 return GetByteCount(pChars, s.Length, null);
144 }
145 }
unsafe override int GetByteCount(char[] chars, int index, int count)

References System.Text.UnicodeEncoding.GetByteCount(), System.s, and System.ThrowHelper.ThrowArgumentNullException().