1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 09:28:48 +00:00

fix: include WriteBits to !NET5_0_OR_GREATER

This commit is contained in:
Oliver Booth 2023-08-27 03:39:53 +01:00
parent 5d936b5385
commit 41ba8b5aad
Signed by: oliverbooth
GPG Key ID: B89D139977693FED

View File

@ -102,7 +102,7 @@ public static class DecimalExtensions
#endif
}
[Conditional("NET5_0_OR_GREATER")]
#if !NET5_0_OR_GREATER
private static void WriteBits(Span<int> destination, Span<byte> buffer)
{
var flags = MemoryMarshal.Read<int>(buffer[..4]);
@ -117,4 +117,5 @@ public static class DecimalExtensions
destination[2] = hi;
destination[3] = flags;
}
#endif
}