mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 16:08:47 +00:00
refactor: discard GetBits return
This commit is contained in:
parent
799e635577
commit
cfe70a7923
@ -94,7 +94,7 @@ public static class DecimalExtensions
|
|||||||
private static void GetBits(decimal value, Span<int> destination)
|
private static void GetBits(decimal value, Span<int> destination)
|
||||||
{
|
{
|
||||||
#if NET5_0_OR_GREATER
|
#if NET5_0_OR_GREATER
|
||||||
decimal.GetBits(value, destination);
|
_ = decimal.GetBits(value, destination);
|
||||||
#else
|
#else
|
||||||
Span<byte> buffer = stackalloc byte[16];
|
Span<byte> buffer = stackalloc byte[16];
|
||||||
MemoryMarshal.Write(buffer, ref value);
|
MemoryMarshal.Write(buffer, ref value);
|
||||||
|
Loading…
Reference in New Issue
Block a user