Skip to content

Commit

Permalink
Use ReadOnlySpan
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding-Enthusiast committed Sep 20, 2024
1 parent 937c720 commit 77f50b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Autarkysoft.Bitcoin/Cryptography/Hashing/Digest256.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Digest256(uint u)
/// <exception cref="ArgumentNullException"/>
/// <exception cref="ArgumentOutOfRangeException"/>
/// <param name="ba32">Byte array to use</param>
public Digest256(Span<byte> ba32)
public Digest256(ReadOnlySpan<byte> ba32)
{
if (ba32 == null)
throw new ArgumentNullException(nameof(ba32));
Expand Down Expand Up @@ -70,7 +70,7 @@ public unsafe Digest256(uint* hPt)
/// <exception cref="ArgumentNullException"/>
/// <exception cref="ArgumentOutOfRangeException"/>
/// <param name="u8">UInt32 array</param>
public Digest256(Span<uint> u8)
public Digest256(ReadOnlySpan<uint> u8)
{
if (u8 == null)
throw new ArgumentNullException(nameof(u8));
Expand Down

0 comments on commit 77f50b2

Please sign in to comment.