4 implementations of NumberBufferLength
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
2557static int IBinaryFloatParseAndFormatInfo<double>.NumberBufferLength => Number.DoubleNumberBufferLength;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2400static int IBinaryFloatParseAndFormatInfo<Half>.NumberBufferLength => Number.HalfNumberBufferLength;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
2121static int IBinaryFloatParseAndFormatInfo<BFloat16>.NumberBufferLength => 96 + 1 + 1; // 96 for the longest input + 1 for rounding (+1 for the null terminator)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
2245static int IBinaryFloatParseAndFormatInfo<float>.NumberBufferLength => Number.SingleNumberBufferLength;
6 references to NumberBufferLength
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
3812Span<byte> digits = stackalloc byte[TFloat.NumberBufferLength];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (2)
1045byte* pDigits = stackalloc byte[TNumber.NumberBufferLength]; 1052NumberBuffer number = new NumberBuffer(NumberBufferKind.FloatingPoint, pDigits, TNumber.NumberBufferLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
1590NumberBuffer number = new NumberBuffer(NumberBufferKind.FloatingPoint, stackalloc byte[TFloat.NumberBufferLength]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (2)
392byte* pDigits = stackalloc byte[TNumber.NumberBufferLength]; 393NumberBuffer number = new NumberBuffer(NumberBufferKind.FloatingPoint, pDigits, TNumber.NumberBufferLength);