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

◆ GetBytes() [1/9]

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

Reimplemented from System.Text.Encoding.

Definition at line 280 of file UTF8Encoding.cs.

281 {
282 if (chars == null || bytes == null)
283 {
284 ThrowHelper.ThrowArgumentNullException((chars == null) ? ExceptionArgument.chars : ExceptionArgument.bytes, ExceptionResource.ArgumentNull_Array);
285 }
286 if ((charCount | byteCount) < 0)
287 {
288 ThrowHelper.ThrowArgumentOutOfRangeException((charCount < 0) ? ExceptionArgument.charCount : ExceptionArgument.byteCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
289 }
291 }
unsafe int GetBytesCommon(char *pChars, int charCount, byte *pBytes, int byteCount)

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