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

◆ GetByteCount() [6/7]

unsafe override int System.Text.Latin1Encoding.GetByteCount ( string s)
inlinevirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 78 of file Latin1Encoding.cs.

79 {
80 if (s == null)
81 {
82 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
83 }
84 fixed (char* pChars = s)
85 {
86 return GetByteCountCommon(pChars, s.Length);
87 }
88 }
unsafe int GetByteCountCommon(char *pChars, int charCount)

References System.Text.Latin1Encoding.GetByteCountCommon(), System.s, and System.ThrowHelper.ThrowArgumentNullException().