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

◆ ToInt32D7()

static int System.Xml.XmlConverter.ToInt32D7 ( byte[] chars,
int offset,
int count )
inlinestaticprivate

Definition at line 1007 of file XmlConverter.cs.

1008 {
1009 int num = 0;
1010 for (int i = 0; i < count; i++)
1011 {
1012 byte b = (byte)(chars[offset + i] - 48);
1013 if (b > 9)
1014 {
1015 return -1;
1016 }
1017 num = num * 10 + b;
1018 }
1019 return num;
1020 }

References System.chars, System.count, System.Xml.Dictionary, and System.offset.

Referenced by System.Xml.XmlConverter.ToInt32D4(), and System.Xml.XmlConverter.TryParseDateTime().