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

◆ GetBytes() [2/5]

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

Reimplemented from System.Text.Encoder.

Definition at line 148 of file EncoderNLS.cs.

149 {
150 if (chars == null || bytes == null)
151 {
152 throw new ArgumentNullException((chars == null) ? "chars" : "bytes", System.SR.ArgumentNull_Array);
153 }
154 if (byteCount < 0 || charCount < 0)
155 {
156 throw new ArgumentOutOfRangeException((byteCount < 0) ? "byteCount" : "charCount", System.SR.ArgumentOutOfRange_NeedNonNegNum);
157 }
159 m_throwOnOverflow = true;
161 }
EncodingNLS m_encoding
Definition EncoderNLS.cs:9
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, System.Runtime.Serialization.Dictionary, System.Text.EncodingNLS.GetBytes(), System.Text.EncoderNLS.m_encoding, System.Text.EncoderNLS.m_mustFlush, and System.Text.EncoderNLS.m_throwOnOverflow.