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

◆ GetChars() [1/6]

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

Reimplemented from System.Text.Encoding.

Definition at line 344 of file ASCIIEncoding.cs.

345 {
346 if (bytes == null || chars == null)
347 {
348 ThrowHelper.ThrowArgumentNullException((bytes == null) ? ExceptionArgument.bytes : ExceptionArgument.chars, ExceptionResource.ArgumentNull_Array);
349 }
350 if ((byteCount | charCount) < 0)
351 {
352 ThrowHelper.ThrowArgumentOutOfRangeException((byteCount < 0) ? ExceptionArgument.byteCount : ExceptionArgument.charCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
353 }
355 }
unsafe int GetCharsCommon(byte *pBytes, int byteCount, char *pChars, int charCount)

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