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

◆ GetByteCount() [2/5]

unsafe override int System.Text.EncoderNLS.GetByteCount ( char * chars,
int count,
bool flush )
inlinevirtualinherited

Reimplemented from System.Text.Encoder.

Definition at line 97 of file EncoderNLS.cs.

98 {
99 if (chars == null)
100 {
101 throw new ArgumentNullException("chars", System.SR.ArgumentNull_Array);
102 }
103 if (count < 0)
104 {
105 throw new ArgumentOutOfRangeException("count", System.SR.ArgumentOutOfRange_NeedNonNegNum);
106 }
108 m_throwOnOverflow = true;
109 return m_encoding.GetByteCount(chars, count, this);
110 }
static string ArgumentNull_Array
Definition SR.cs:24
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7
EncodingNLS m_encoding
Definition EncoderNLS.cs:9
unsafe int GetByteCount(char *chars, int count, System.Text.EncoderNLS encoder)

References System.SR.ArgumentNull_Array, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.chars, System.count, System.Runtime.Serialization.Dictionary, System.Text.EncodingNLS.GetByteCount(), System.Text.EncoderNLS.m_encoding, System.Text.EncoderNLS.m_mustFlush, and System.Text.EncoderNLS.m_throwOnOverflow.