Skip to content

Commit

Permalink
Use specified block size instead of MIN_BLOCK_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial committed Apr 14, 2015
1 parent a6eb0a6 commit 3fe3251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/xerial/snappy/SnappyOutputStream.java
Expand Up @@ -232,7 +232,7 @@ private boolean hasSufficientOutputBufferFor(int inputSize) {
*/
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;
Expand Down

0 comments on commit 3fe3251

Please sign in to comment.