Describe the enhancement requested
In .NET 7+ there is an option to use SqlDecimal.WriteTdsValue to avoid allocating a byte[]
|
// TODO: Consider groveling in the internals to avoid the probable allocation |
|
Span<int> span = bytes.CastTo<int>(); |
|
value.Data.AsSpan().CopyTo(span); |
Component(s)
C#
Describe the enhancement requested
In .NET 7+ there is an option to use SqlDecimal.WriteTdsValue to avoid allocating a
byte[]arrow/csharp/src/Apache.Arrow/DecimalUtility.cs
Lines 434 to 436 in 68eeef5
Component(s)
C#