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

◆ WriteFourDecimalDigits()

static void System.DateTimeFormat.WriteFourDecimalDigits ( uint value,
Span< char > buffer,
int startingIndex = 0 )
inlinestaticprivate

Definition at line 994 of file DateTimeFormat.cs.

995 {
996 uint num = 48 + value;
997 value /= 10;
998 buffer[startingIndex + 3] = (char)(num - value * 10);
999 num = 48 + value;
1000 value /= 10;
1001 buffer[startingIndex + 2] = (char)(num - value * 10);
1002 num = 48 + value;
1003 value /= 10;
1004 buffer[startingIndex + 1] = (char)(num - value * 10);
1005 buffer[startingIndex] = (char)(48 + value);
1006 }

References System.buffer, and System.value.

Referenced by System.DateTimeFormat.TryFormatDateOnlyO(), System.DateTimeFormat.TryFormatDateOnlyR(), System.DateTimeFormat.TryFormatO(), and System.DateTimeFormat.TryFormatR().