Snappy implementation. The native method in this class is
defined in SnappyNative.h (genereted by javah) and SnappyNative.cpp
DO NOT USE THIS CLASS since the direct use of this class might break the
native library code loading in SnappyLoader.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public native void | arrayCopy(Object src, int offset, int byteLength, Object dest, int dOffset)
Implements org.
|
| public native boolean | isValidCompressedBuffer(ByteBuffer compressed, int offset, int len)
Implements org.
|
| public native boolean | isValidCompressedBuffer(Object input, int offset, int len)
Implements org.
|
| public native boolean | isValidCompressedBuffer(long inputAddr, long offset, long len)
Implements org.
|
| public native int | |
| public native String | |
| public native long | rawCompress(long inputAddr, long inputSize, long destAddr)
Implements org.
|
| public native int | rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset)
Implements org.
|
| public native int | rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset)
Implements org.
|
| public native long | rawUncompress(long inputAddr, long inputSize, long destAddr)
Implements org.
|
| public native int | rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset)
Implements org.
|
| public native int | rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset)
Implements org.
|
| public void | |
| public native int | uncompressedLength(ByteBuffer compressed, int offset, int len)
Implements org.
|
| public native int | uncompressedLength(Object input, int offset, int len)
Implements org.
|
| public native long | uncompressedLength(long inputAddr, long len)
Implements org.
|
| SnappyNative | back to summary |
|---|---|
| public SnappyNative() | |
| arrayCopy | back to summary |
|---|---|
| public native void arrayCopy(Object src, int offset, int byteLength, Object dest, int dOffset) throws IOException Implements org.
| |
| isValidCompressedBuffer | back to summary |
|---|---|
| public native boolean isValidCompressedBuffer(ByteBuffer compressed, int offset, int len) throws IOException Implements org.
| |
| isValidCompressedBuffer | back to summary |
|---|---|
| public native boolean isValidCompressedBuffer(Object input, int offset, int len) throws IOException Implements org.
| |
| isValidCompressedBuffer | back to summary |
|---|---|
| public native boolean isValidCompressedBuffer(long inputAddr, long offset, long len) throws IOException Implements org.
| |
| maxCompressedLength | back to summary |
|---|---|
| public native int maxCompressedLength(int source_bytes) Implements org.
| |
| nativeLibraryVersion | back to summary |
|---|---|
| public native String nativeLibraryVersion() | |
| rawCompress | back to summary |
|---|---|
| public native long rawCompress(long inputAddr, long inputSize, long destAddr) throws IOException Implements org.
| |
| rawCompress | back to summary |
|---|---|
| public native int rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset) throws IOException Implements org.
| |
| rawCompress | back to summary |
|---|---|
| public native int rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset) throws IOException Implements org.
| |
| rawUncompress | back to summary |
|---|---|
| public native long rawUncompress(long inputAddr, long inputSize, long destAddr) throws IOException Implements org.
| |
| rawUncompress | back to summary |
|---|---|
| public native int rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset) throws IOException Implements org.
| |
| rawUncompress | back to summary |
|---|---|
| public native int rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset) throws IOException Implements org.
| |
| throw_error | back to summary |
|---|---|
| public void throw_error(int errorCode) throws IOException | |
| uncompressedLength | back to summary |
|---|---|
| public native int uncompressedLength(ByteBuffer compressed, int offset, int len) throws IOException Implements org.
| |
| uncompressedLength | back to summary |
|---|---|
| public native int uncompressedLength(Object input, int offset, int len) throws IOException Implements org.
| |
| uncompressedLength | back to summary |
|---|---|
| public native long uncompressedLength(long inputAddr, long len) throws IOException Implements org.
| |