21 instantiations of NumberBuffer
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Decimal.cs (1)
50
Number.NumberBuffer number = new Number.
NumberBuffer
(Number.NumberBufferKind.Decimal, stackalloc byte[Number.DecimalNumberBufferLength]);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (2)
32
Number.NumberBuffer number = new Number.
NumberBuffer
(Number.NumberBufferKind.FloatingPoint, stackalloc byte[Number.SingleNumberBufferLength]);
65
Number.NumberBuffer number = new Number.
NumberBuffer
(Number.NumberBufferKind.FloatingPoint, stackalloc byte[Number.DoubleNumberBufferLength]);
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (15)
338
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Decimal, pDigits, DecimalNumberBufferLength);
366
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Decimal, pDigits, DecimalNumberBufferLength);
601
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.FloatingPoint, pDigits, TNumber.NumberBufferLength);
710
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, Int32NumberBufferLength);
769
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, Int32NumberBufferLength);
824
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, UInt32NumberBufferLength);
881
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, UInt32NumberBufferLength);
940
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, Int64NumberBufferLength);
1001
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, Int64NumberBufferLength);
1056
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, UInt64NumberBufferLength);
1113
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, UInt64NumberBufferLength);
1174
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, Int128NumberBufferLength);
1235
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, Int128NumberBufferLength);
1292
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, UInt128NumberBufferLength);
1349
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, pDigits, UInt128NumberBufferLength);
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (3)
218
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Integer, stackalloc byte[TInteger.MaxDigitCount + 1]);
870
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.Decimal, stackalloc byte[DecimalNumberBufferLength]);
952
NumberBuffer number = new
NumberBuffer
(NumberBufferKind.FloatingPoint, stackalloc byte[TFloat.NumberBufferLength]);
49 references to NumberBuffer
System.Private.CoreLib (49)
src\libraries\Common\src\System\Number.Formatting.Common.cs (9)
142
internal static unsafe void NumberToString<TChar>(ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number, char format, int nMaxDigits, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar>
291
internal static unsafe void NumberToStringFormat<TChar>(ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number, ReadOnlySpan<char> format, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar>
714
private static unsafe void FormatCurrency<TChar>(ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number, int nMaxDigits, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar>
746
ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number,
884
private static unsafe void FormatNumber<TChar>(ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number, int nMaxDigits, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar>
911
private static unsafe void FormatScientific<TChar>(ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number, int nMaxDigits, NumberFormatInfo info, char expChar) where TChar : unmanaged, IUtfChar<TChar>
957
private static unsafe void FormatGeneral<TChar>(ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number, int nMaxDigits, NumberFormatInfo info, char expChar, bool suppressScientific) where TChar : unmanaged, IUtfChar<TChar>
1011
private static unsafe void FormatPercent<TChar>(ref ValueListBuilder<TChar> vlb, ref
NumberBuffer
number, int nMaxDigits, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar>
1042
internal static unsafe void RoundNumber(ref
NumberBuffer
number, int pos, bool isCorrectlyRounded)
src\libraries\Common\src\System\Number.Parsing.Common.cs (2)
13
private static unsafe bool TryParseNumber<TChar>(scoped ref TChar* str, TChar* strEnd, NumberStyles styles, ref
NumberBuffer
number, NumberFormatInfo info)
280
internal static unsafe bool TryStringToNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, ref
NumberBuffer
number, NumberFormatInfo info)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Decimal.cs (1)
50
Number.
NumberBuffer
number = new Number.NumberBuffer(Number.NumberBufferKind.Decimal, stackalloc byte[Number.DecimalNumberBufferLength]);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (3)
32
Number.
NumberBuffer
number = new Number.NumberBuffer(Number.NumberBufferKind.FloatingPoint, stackalloc byte[Number.SingleNumberBufferLength]);
65
Number.
NumberBuffer
number = new Number.NumberBuffer(Number.NumberBufferKind.FloatingPoint, stackalloc byte[Number.DoubleNumberBufferLength]);
79
private static bool TryParseNormalAsFloatingPoint(ReadOnlySpan<byte> source, ref Number.
NumberBuffer
number, out int bytesConsumed, char standardFormat)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (1)
16
private static bool TryParseNumber(ReadOnlySpan<byte> source, ref Number.
NumberBuffer
number, out int bytesConsumed, ParseNumberOptions options, out bool textUsedExponentNotation)
src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (1)
13
public static void Dragon4<TNumber>(TNumber value, int cutoffNumber, bool isSignificantDigits, ref
NumberBuffer
number)
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (22)
338
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Decimal, pDigits, DecimalNumberBufferLength);
366
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Decimal, pDigits, DecimalNumberBufferLength);
387
internal static unsafe void DecimalToNumber(scoped ref decimal d, ref
NumberBuffer
number)
601
NumberBuffer
number = new NumberBuffer(NumberBufferKind.FloatingPoint, pDigits, TNumber.NumberBufferLength);
710
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, Int32NumberBufferLength);
769
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, Int32NumberBufferLength);
824
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, UInt32NumberBufferLength);
881
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, UInt32NumberBufferLength);
940
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, Int64NumberBufferLength);
1001
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, Int64NumberBufferLength);
1056
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, UInt64NumberBufferLength);
1113
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, UInt64NumberBufferLength);
1174
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, Int128NumberBufferLength);
1235
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, Int128NumberBufferLength);
1292
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, UInt128NumberBufferLength);
1349
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, pDigits, UInt128NumberBufferLength);
1373
private static unsafe void Int32ToNumber(int value, ref
NumberBuffer
number)
1579
private static unsafe void UInt32ToNumber(uint value, ref
NumberBuffer
number)
1804
private static unsafe void Int64ToNumber(long value, ref
NumberBuffer
number)
2044
private static unsafe void UInt64ToNumber(ulong value, ref
NumberBuffer
number)
2230
private static unsafe void Int128ToNumber(Int128 value, ref
NumberBuffer
number)
2456
private static unsafe void UInt128ToNumber(UInt128 value, ref
NumberBuffer
number)
src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (1)
324
public static bool TryRun<TNumber>(TNumber value, int requestedDigits, ref
NumberBuffer
number)
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (3)
699
private static void AccumulateDecimalDigitsIntoBigInteger(scoped ref
NumberBuffer
number, uint firstIndex, uint lastIndex, out BigInteger result)
972
private static ulong NumberToFloatingPointBits<TFloat>(ref
NumberBuffer
number)
1054
private static ulong NumberToFloatingPointBitsSlow<TFloat>(ref
NumberBuffer
number, uint positiveExponent, uint integerDigitsPresent, uint fractionalDigitsPresent)
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (6)
116
private static unsafe bool TryNumberBufferToBinaryInteger<TInteger>(ref
NumberBuffer
number, ref TInteger value)
218
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Integer, stackalloc byte[TInteger.MaxDigitCount + 1]);
736
internal static unsafe bool TryNumberToDecimal(ref
NumberBuffer
number, ref decimal value)
870
NumberBuffer
number = new NumberBuffer(NumberBufferKind.Decimal, stackalloc byte[DecimalNumberBufferLength]);
952
NumberBuffer
number = new NumberBuffer(NumberBufferKind.FloatingPoint, stackalloc byte[TFloat.NumberBufferLength]);
1082
internal static TFloat NumberToFloat<TFloat>(ref
NumberBuffer
number)