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

◆ GetChars() [2/4]

override int System.Xml.Ucs4Decoder.GetChars ( byte[] bytes,
int byteIndex,
int byteCount,
char[] chars,
int charIndex )
inlineinherited

Definition at line 18 of file Ucs4Decoder.cs.

19 {
20 int num = lastBytesCount;
21 if (lastBytesCount > 0)
22 {
24 {
26 byteIndex++;
27 byteCount--;
29 }
30 if (lastBytesCount < 4)
31 {
32 return 0;
33 }
35 charIndex += num;
37 }
38 else
39 {
40 num = 0;
41 }
43 int num2 = byteCount & 3;
44 if (num2 >= 0)
45 {
46 for (int i = 0; i < num2; i++)
47 {
49 }
51 }
52 return num;
53 }
int GetFullChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)

References System.byteCount, System.byteIndex, System.bytes, System.charIndex, System.chars, System.Xml.Dictionary, System.Xml.Ucs4Decoder.GetFullChars(), System.Xml.Ucs4Decoder.lastBytes, and System.Xml.Ucs4Decoder.lastBytesCount.

Referenced by System.Xml.Ucs4Encoding.GetChars().