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

◆ GetCharCount() [1/5]

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

Reimplemented from System.Text.Encoding.

Definition at line 345 of file UTF8Encoding.cs.

346 {
347 if (bytes == null)
348 {
349 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.bytes, ExceptionResource.ArgumentNull_Array);
350 }
351 if (count < 0)
352 {
353 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
354 }
356 }
unsafe int GetCharCountCommon(byte *pBytes, int byteCount)

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