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

◆ ToCharsD2()

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

Definition at line 1171 of file XmlConverter.cs.

1172 {
1173 if (value < 10)
1174 {
1175 chars[offset] = 48;
1176 chars[offset + 1] = (byte)(48 + value);
1177 }
1178 else
1179 {
1180 int num = value / 10;
1181 chars[offset] = (byte)(48 + num);
1182 chars[offset + 1] = (byte)(48 + value - num * 10);
1183 }
1184 return 2;
1185 }

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

Referenced by System.Xml.XmlConverter.ToChars(), and System.Xml.XmlConverter.ToCharsD4().