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

◆ Convert() [2/3]

override void System.Xml.SafeAsciiDecoder.Convert ( byte[] bytes,
int byteIndex,
int byteCount,
char[] chars,
int charIndex,
int charCount,
bool flush,
out int bytesUsed,
out int charsUsed,
out bool completed )
inlinevirtual

Reimplemented from System.Text.Decoder.

Definition at line 23 of file SafeAsciiDecoder.cs.

24 {
25 if (charCount < byteCount)
26 {
28 completed = false;
29 }
30 else
31 {
32 completed = true;
33 }
34 int num = byteIndex;
35 int num2 = charIndex;
36 int num3 = byteIndex + byteCount;
37 while (num < num3)
38 {
39 chars[num2++] = (char)bytes[num++];
40 }
41 charsUsed = byteCount;
42 bytesUsed = byteCount;
43 }

References System.byteCount, System.byteIndex, System.bytes, System.charCount, System.charIndex, System.chars, and System.Xml.Dictionary.