Fix size parametet for the readContentAsStream function

This commit is contained in:
Maschell 2019-06-25 16:01:16 +02:00
parent e3be1f5a33
commit 1c17a668d8

View File

@ -35,7 +35,7 @@ public interface NUSDataProvider {
}
default public InputStream readContentAsStream(Content content, long offset) throws IOException {
return readContentAsStream(content, offset, content.getEncryptedFileSize() - offset);
return readContentAsStream(content, offset, content.getEncryptedFileSizeAligned() - offset);
}
public InputStream readContentAsStream(Content content, long offset, long size) throws IOException;