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

◆ GetByteCount() [1/7]

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

Reimplemented from System.Text.Encoding.

Definition at line 37 of file Latin1Encoding.cs.

38 {
39 if (chars == null)
40 {
41 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.chars);
42 }
43 if (count < 0)
44 {
45 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
46 }
48 }
unsafe int GetByteCountCommon(char *pChars, int charCount)

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