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

◆ GetByteCount() [6/7]

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

Reimplemented from System.Text.Encoding.

Definition at line 122 of file UTF32Encoding.cs.

123 {
124 if (s == null)
125 {
126 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
127 }
128 fixed (char* pChars = s)
129 {
130 return GetByteCount(pChars, s.Length, null);
131 }
132 }
unsafe override int GetByteCount(char[] chars, int index, int count)

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