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

◆ GetChars() [1/6]

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

Reimplemented from System.Text.Encoding.

Definition at line 292 of file Latin1Encoding.cs.

293 {
294 if (bytes == null || chars == null)
295 {
296 ThrowHelper.ThrowArgumentNullException((bytes == null) ? ExceptionArgument.bytes : ExceptionArgument.chars, ExceptionResource.ArgumentNull_Array);
297 }
298 if ((byteCount | charCount) < 0)
299 {
300 ThrowHelper.ThrowArgumentOutOfRangeException((byteCount < 0) ? ExceptionArgument.byteCount : ExceptionArgument.charCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
301 }
303 }
unsafe int GetCharsCommon(byte *pBytes, int byteCount, char *pChars, int charCount)

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