mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-24 22:44:46 +02:00
Use specified block size instead of MIN_BLOCK_SIZE
This commit is contained in:
parent
a6eb0a605d
commit
3fe32512e4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user