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

◆ GetByteCount() [1/7]

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

Reimplemented from System.Text.Encoding.

Definition at line 68 of file ASCIIEncoding.cs.

69 {
70 if (chars == null)
71 {
72 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.chars);
73 }
74 if (count < 0)
75 {
76 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
77 }
79 }
unsafe int GetByteCountCommon(char *pChars, int charCount)

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