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

◆ GetBytes() [1/9]

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

Reimplemented from System.Text.Encoding.

Definition at line 207 of file EncodingNLS.cs.

208 {
209 if (bytes == null || chars == null)
210 {
211 throw new ArgumentNullException((bytes == null) ? "bytes" : "chars", System.SR.ArgumentNull_Array);
212 }
213 if (charCount < 0 || byteCount < 0)
214 {
215 throw new ArgumentOutOfRangeException((charCount < 0) ? "charCount" : "byteCount", System.SR.ArgumentOutOfRange_NeedNonNegNum);
216 }
217 return GetBytes(chars, charCount, bytes, byteCount, null);
218 }
unsafe int GetBytes(char *chars, int charCount, byte *bytes, int byteCount, System.Text.EncoderNLS encoder)

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