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

◆ ToCharsR() [1/2]

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

Definition at line 1144 of file XmlConverter.cs.

1145 {
1146 int num = 0;
1147 if (value >= 0)
1148 {
1149 while (value >= 10)
1150 {
1151 int num2 = value / 10;
1152 num++;
1153 chars[--offset] = (byte)(48 + (value - num2 * 10));
1154 value = num2;
1155 }
1156 chars[--offset] = (byte)(48 + value);
1157 return num + 1;
1158 }
1159 while (value <= -10)
1160 {
1161 int num3 = value / 10;
1162 num++;
1163 chars[--offset] = (byte)(48 - (value - num3 * 10));
1164 value = num3;
1165 }
1166 chars[--offset] = (byte)(48 - value);
1167 chars[--offset] = 45;
1168 return num + 2;
1169 }

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