mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Stream extension to ensure read operations return the requested number of bytes (unless EOF arrives first).
This commit is contained in:
@@ -198,7 +198,7 @@ public sealed partial class Qed
|
||||
_writingStream.Seek((long)(_l1Table[l1Off] + l2Off * 8), SeekOrigin.Begin);
|
||||
|
||||
var entry = new byte[8];
|
||||
_writingStream.Read(entry, 0, 8);
|
||||
_writingStream.EnsureRead(entry, 0, 8);
|
||||
var offset = BitConverter.ToUInt64(entry, 0);
|
||||
|
||||
if(offset == 0)
|
||||
|
||||
Reference in New Issue
Block a user