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

◆ GetChars() [1/6]

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

Reimplemented from System.Text.Encoding.

Definition at line 306 of file UnicodeEncoding.cs.

307 {
308 if (bytes == null || chars == null)
309 {
310 throw new ArgumentNullException((bytes == null) ? "bytes" : "chars", SR.ArgumentNull_Array);
311 }
312 if (charCount < 0 || byteCount < 0)
313 {
314 throw new ArgumentOutOfRangeException((charCount < 0) ? "charCount" : "byteCount", SR.ArgumentOutOfRange_NeedNonNegNum);
315 }
316 return GetChars(bytes, byteCount, chars, charCount, null);
317 }
unsafe override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)

References System.SR.ArgumentNull_Array, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.byteCount, System.bytes, System.charCount, System.chars, and System.Text.UnicodeEncoding.GetChars().