Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetCharCount() [1/5]

unsafe override int System.Text.ASCIIEncoding.GetCharCount ( byte * bytes,
int count )
inlinevirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 267 of file ASCIIEncoding.cs.

268 {
269 if (bytes == null)
270 {
271 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.bytes, ExceptionResource.ArgumentNull_Array);
272 }
273 if (count < 0)
274 {
275 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
276 }
278 }
unsafe int GetCharCountCommon(byte *pBytes, int byteCount)

References System.bytes, System.count, System.Text.ASCIIEncoding.GetCharCountCommon(), System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().