Definition at line 2484 of file Number.cs.
2485 {
2486 if (digits < 1)
2487 {
2488 digits = 1;
2489 }
2492 string text =
string.FastAllocateString(num);
2493 fixed (
char* ptr =
text)
2494 {
2495 char* bufferEnd = ptr + num;
2497 {
2499 digits -= 9;
2500 }
2502 for (int num2 = sNegative.Length - 1; num2 >= 0; num2--)
2503 {
2504 *(--bufferEnd) = sNegative[num2];
2505 }
2506 }
2508 }
static int CountDigits(ulong value)
static uint High32(ulong value)
static uint Int64DivMod1E9(ref ulong value)
static uint Low32(ulong value)
static unsafe byte * UInt32ToDecChars(byte *bufferEnd, uint value, int digits)
References System.Buffers.Text.FormattingHelpers.CountDigits(), System.Number.High32(), System.input, System.Number.Int64DivMod1E9(), System.Number.Low32(), System.Math.Max(), System.text, System.Number.UInt32ToDecChars(), and System.value.
Referenced by System.Number.FormatInt64(), and System.Number.Int64ToDecStr().