mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 10:41:26 +00:00
@@ -111,7 +111,8 @@ class BlockAlignedWritableFile implements WritableFile {
|
||||
currentBlockBuffer.clear();
|
||||
try (ReadableFile r = openReadable.get()) {
|
||||
r.position(physicalPosition);
|
||||
r.read(currentBlockBuffer);
|
||||
int numRead = r.read(currentBlockBuffer);
|
||||
assert numRead == currentBlockBuffer.position();
|
||||
}
|
||||
int advance = (int) (logicalPosition - physicalPosition);
|
||||
currentBlockBuffer.position(advance);
|
||||
|
||||
Reference in New Issue
Block a user