mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-26 23:44:10 +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 {
|
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
|
// copy the input data to uncompressed buffer
|
||||||
Snappy.arrayCopy(array, byteOffset, byteLength, inputBuffer, inputCursor);
|
Snappy.arrayCopy(array, byteOffset, byteLength, inputBuffer, inputCursor);
|
||||||
inputCursor += byteLength;
|
inputCursor += byteLength;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user