Implemented reading SD/MMC using buffered OS calls.

This commit is contained in:
2020-12-12 22:48:03 +00:00
parent 04a2626125
commit c788a4ded5
12 changed files with 114 additions and 3 deletions

View File

@@ -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);