in src/main/java/com/spotify/sparkey/CompressedReader.java [77:89]
private int readImpl(byte[] b, int off, int len) throws IOException {
int available = available();
if (len <= available) {
System.arraycopy(uncompressedBuf, bufPos, b, off, len);
bufPos += len;
return len;
} else {
System.arraycopy(uncompressedBuf, bufPos, b, off, available);
bufPos = blockSize;
fetchBlock();
return available;
}
}