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

◆ GetBytes() [1/9]

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

Reimplemented from System.Text.Encoding.

Definition at line 173 of file ASCIIEncoding.cs.

174 {
175 if (chars == null || bytes == null)
176 {
177 ThrowHelper.ThrowArgumentNullException((chars == null) ? ExceptionArgument.chars : ExceptionArgument.bytes, ExceptionResource.ArgumentNull_Array);
178 }
179 if ((charCount | byteCount) < 0)
180 {
181 ThrowHelper.ThrowArgumentOutOfRangeException((charCount < 0) ? ExceptionArgument.charCount : ExceptionArgument.byteCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
182 }
184 }
unsafe int GetBytesCommon(char *pChars, int charCount, byte *pBytes, int byteCount)

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