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

◆ ToInt32D2()

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

Definition at line 991 of file XmlConverter.cs.

992 {
993 byte b = (byte)(chars[offset] - 48);
994 byte b2 = (byte)(chars[offset + 1] - 48);
995 if (b > 9 || b2 > 9)
996 {
997 return -1;
998 }
999 return 10 * b + b2;
1000 }

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

Referenced by System.Xml.XmlConverter.TryParseDateTime().