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

◆ GetBytes() [1/9]

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

Reimplemented from System.Text.Encoding.

Definition at line 209 of file UTF32Encoding.cs.

210 {
211 if (bytes == null || chars == null)
212 {
213 throw new ArgumentNullException((bytes == null) ? "bytes" : "chars", SR.ArgumentNull_Array);
214 }
215 if (charCount < 0 || byteCount < 0)
216 {
217 throw new ArgumentOutOfRangeException((charCount < 0) ? "charCount" : "byteCount", SR.ArgumentOutOfRange_NeedNonNegNum);
218 }
219 return GetBytes(chars, charCount, bytes, byteCount, null);
220 }
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.UTF32Encoding.GetBytes().