mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-26 07:24:54 +02:00
Fixes issue 10
This commit is contained in:
parent
bfec17b345
commit
bc8a059855
@ -436,7 +436,7 @@ public class Snappy
|
|||||||
public static long[] uncompressLongArray(byte[] input, int offset, int length) throws SnappyException {
|
public static long[] uncompressLongArray(byte[] input, int offset, int length) throws SnappyException {
|
||||||
int uncompressedLength = Snappy.uncompressedLength(input, offset, length);
|
int uncompressedLength = Snappy.uncompressedLength(input, offset, length);
|
||||||
long[] result = new long[uncompressedLength / 8];
|
long[] result = new long[uncompressedLength / 8];
|
||||||
int byteSize = SnappyNative.rawUncompress(input, length, length, result, 0);
|
int byteSize = SnappyNative.rawUncompress(input, offset, length, result, 0);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user