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

◆ GetCharCount() [3/4]

override int System.Xml.UTF16Decoder.GetCharCount ( byte[] bytes,
int index,
int count,
bool flush )
inlinevirtual

Reimplemented from System.Text.Decoder.

Definition at line 22 of file UTF16Decoder.cs.

23 {
24 int num = count + ((_lastByte >= 0) ? 1 : 0);
25 if (flush && num % 2 != 0)
26 {
28 }
29 return num / 2;
30 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Enc_InvalidByteInEncoding
Definition SR.cs:1818
Definition SR.cs:7

References System.Xml.UTF16Decoder._lastByte, System.Xml.ArgumentException, System.count, System.Xml.Dictionary, System.SR.Enc_InvalidByteInEncoding, and System.SR.Format().