Skip to content

Commit

Permalink
Stream.ReadExactly instead of Stream.Read
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortDevelopment committed Jan 27, 2025
1 parent 21d9cbf commit 0fc18bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ulong FileSize
public void ReadBlob(ulong start, Span<byte> buffer)
{
_buffer.Position = (long)start;
_buffer.Read(buffer);
_buffer.ReadExactly(buffer);
}

public void Dispose()
Expand Down

0 comments on commit 0fc18bb

Please sign in to comment.