mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Implemented reading SD/MMC using buffered OS calls.
This commit is contained in:
@@ -253,7 +253,8 @@ namespace Aaru.Core.Devices.Scanning
|
||||
error = _dev.ReadWithBlockCount(out cmdBuf, out _, (uint)i, blockSize, blocksToRead, byteAddressed,
|
||||
timeout, out duration);
|
||||
else if(_useBufferedReads)
|
||||
throw new NotImplementedException();
|
||||
error = _dev.BufferedOsRead(out cmdBuf, (long)(i * blockSize), blockSize * blocksToRead,
|
||||
out duration);
|
||||
else
|
||||
error = _dev.ReadMultipleUsingSingle(out cmdBuf, out _, (uint)i, blockSize, blocksToRead,
|
||||
byteAddressed, timeout, out duration);
|
||||
|
||||
Reference in New Issue
Block a user