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

◆ ToCharsR() [2/2]

static int System.Xml.XmlConverter.ToCharsR ( long value,
byte[] chars,
int offset )
inlinestatic

Definition at line 862 of file XmlConverter.cs.

863 {
864 int num = 0;
865 if (value >= 0)
866 {
867 while (value > int.MaxValue)
868 {
869 long num2 = value / 10;
870 num++;
871 chars[--offset] = (byte)(48 + (int)(value - num2 * 10));
872 value = num2;
873 }
874 }
875 else
876 {
877 while (value < int.MinValue)
878 {
879 long num3 = value / 10;
880 num++;
881 chars[--offset] = (byte)(48 - (int)(value - num3 * 10));
882 value = num3;
883 }
884 }
885 return num + ToCharsR((int)value, chars, offset);
886 }
static int ToCharsR(long value, byte[] chars, int offset)

References System.chars, System.Xml.Dictionary, System.offset, System.Xml.XmlConverter.ToCharsR(), and System.value.

Referenced by System.Xml.XmlConverter.ToChars(), System.Xml.XmlConverter.ToChars(), System.Xml.XmlConverter.ToCharsD7(), and System.Xml.XmlConverter.ToCharsR().