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

◆ GetChars() [1/6]

unsafe override int System.Text.UTF8Encoding.GetChars ( byte * bytes,
int byteCount,
char * chars,
int charCount )
inlinevirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 394 of file UTF8Encoding.cs.

395 {
396 if (bytes == null || chars == null)
397 {
398 ThrowHelper.ThrowArgumentNullException((bytes == null) ? ExceptionArgument.bytes : ExceptionArgument.chars, ExceptionResource.ArgumentNull_Array);
399 }
400 if ((byteCount | charCount) < 0)
401 {
402 ThrowHelper.ThrowArgumentOutOfRangeException((byteCount < 0) ? ExceptionArgument.byteCount : ExceptionArgument.charCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
403 }
405 }
unsafe int GetCharsCommon(byte *pBytes, int byteCount, char *pChars, int charCount)

References System.byteCount, System.bytes, System.charCount, System.chars, System.Text.UTF8Encoding.GetCharsCommon(), System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().