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

◆ GetByteCount() [1/7]

unsafe override int System.Text.UTF8Encoding.GetByteCount ( char * chars,
int count )
inlinevirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 173 of file UTF8Encoding.cs.

174 {
175 if (chars == null)
176 {
177 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.chars);
178 }
179 if (count < 0)
180 {
181 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
182 }
184 }
unsafe int GetByteCountCommon(char *pChars, int charCount)

References System.chars, System.count, System.Text.UTF8Encoding.GetByteCountCommon(), System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().