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

◆ WriteDigitsWithGroupSeparator()

static void System.Buffers.Text.FormattingHelpers.WriteDigitsWithGroupSeparator ( ulong value,
Span< byte > buffer )
inlinestatic

Definition at line 113 of file FormattingHelpers.cs.

114 {
115 int num = 0;
116 for (int num2 = buffer.Length - 1; num2 >= 1; num2--)
117 {
118 ulong num3 = 48 + value;
119 value /= 10;
120 buffer[num2] = (byte)(num3 - value * 10);
121 if (num == 2)
122 {
123 buffer[--num2] = 44;
124 num = 0;
125 }
126 else
127 {
128 num++;
129 }
130 }
131 buffer[0] = (byte)(48 + value);
132 }

References System.buffer, and System.value.

Referenced by System.Buffers.Text.Utf8Formatter.TryFormatUInt64N().