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

◆ GetBytes() [1/9]

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

Reimplemented from System.Text.Encoding.

Definition at line 356 of file UTF7Encoding.cs.

357 {
358 if (bytes == null || chars == null)
359 {
360 throw new ArgumentNullException((bytes == null) ? "bytes" : "chars", SR.ArgumentNull_Array);
361 }
362 if (charCount < 0 || byteCount < 0)
363 {
364 throw new ArgumentOutOfRangeException((charCount < 0) ? "charCount" : "byteCount", SR.ArgumentOutOfRange_NeedNonNegNum);
365 }
366 return GetBytes(chars, charCount, bytes, byteCount, null);
367 }
unsafe override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex)

References System.SR.ArgumentNull_Array, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.byteCount, System.bytes, System.charCount, System.chars, and System.Text.UTF7Encoding.GetBytes().