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

◆ GetCharCount() [2/7]

unsafe override int System.Text.DecoderNLS.GetCharCount ( byte * bytes,
int count,
bool flush )
inlinevirtualinherited

Reimplemented from System.Text.Decoder.

Definition at line 95 of file DecoderNLS.cs.

96 {
97 if (bytes == null)
98 {
99 throw new ArgumentNullException("bytes", System.SR.ArgumentNull_Array);
100 }
101 if (count < 0)
102 {
103 throw new ArgumentOutOfRangeException("count", System.SR.ArgumentOutOfRange_NeedNonNegNum);
104 }
106 m_throwOnOverflow = true;
107 return m_encoding.GetCharCount(bytes, count, this);
108 }
static string ArgumentNull_Array
Definition SR.cs:24
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7
EncodingNLS m_encoding
Definition DecoderNLS.cs:7
unsafe int GetCharCount(byte *bytes, int count, System.Text.DecoderNLS decoder)

References System.SR.ArgumentNull_Array, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.bytes, System.count, System.Runtime.Serialization.Dictionary, System.Text.EncodingNLS.GetCharCount(), System.Text.DecoderNLS.m_encoding, System.Text.DecoderNLS.m_mustFlush, and System.Text.DecoderNLS.m_throwOnOverflow.