Skip to content

Commit

Permalink
style: mark WriteBits conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Aug 26, 2023
1 parent b843d15 commit 799e635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions X10D/src/IO/DecimalExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;

Expand Down Expand Up @@ -101,6 +102,7 @@ private static void GetBits(decimal value, Span<int> destination)
#endif
}

[Conditional("NET5_0_OR_GREATER")]
private static void WriteBits(Span<int> destination, Span<byte> buffer)
{
var flags = MemoryMarshal.Read<int>(buffer[..4]);
Expand Down

0 comments on commit 799e635

Please sign in to comment.