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

◆ Int32ToHexChars()

static unsafe char * System.Number.Int32ToHexChars ( char * buffer,
uint value,
int hexBase,
int digits )
inlinestaticprivate

Definition at line 2333 of file Number.cs.

2334 {
2335 while (--digits >= 0 || value != 0)
2336 {
2337 byte b = (byte)(value & 0xFu);
2338 *(--buffer) = (char)(b + ((b < 10) ? 48 : hexBase));
2339 value >>= 4;
2340 }
2341 return buffer;
2342 }

References System.buffer, and System.value.

Referenced by System.Number.Int32ToHexStr(), System.Number.Int64ToHexStr(), System.Number.TryInt32ToHexStr(), and System.Number.TryInt64ToHexStr().