mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 03:18:47 +00:00
fix: include WriteBits to !NET5_0_OR_GREATER
This commit is contained in:
parent
5d936b5385
commit
41ba8b5aad
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user