Use specified block size instead of MIN_BLOCK_SIZE

This commit is contained in:
Taro L. Saito 2015-04-14 15:22:20 +09:00
parent a6eb0a605d
commit 3fe32512e4

View File

@ -232,7 +232,7 @@ public class SnappyOutputStream extends OutputStream {
*/
public void rawWrite(Object array, int byteOffset, int byteLength) throws IOException {
if(inputCursor + byteLength < MIN_BLOCK_SIZE) {
if(inputCursor + byteLength < blockSize) {
// copy the input data to uncompressed buffer
Snappy.arrayCopy(array, byteOffset, byteLength, inputBuffer, inputCursor);
inputCursor += byteLength;