public class SnappyNative extends java.lang.Object implements SnappyNativeAPI
SnappyNativeAPI implementation. The native
method in this class is defined in SnappyNative.h (genereted by javah) and
SnappyNative.cpp
NEVER USE THIS CLASS DIRECTLY since it breaks the native library code
loading.| Constructor and Description |
|---|
SnappyNative() |
| Modifier and Type | Method and Description |
|---|---|
void |
arrayCopy(java.lang.Object src,
int offset,
int byteLength,
java.lang.Object dest,
int dOffset) |
boolean |
isValidCompressedBuffer(java.nio.ByteBuffer compressed,
int offset,
int len) |
boolean |
isValidCompressedBuffer(java.lang.Object input,
int offset,
int len) |
int |
maxCompressedLength(int source_bytes) |
java.lang.String |
nativeLibraryVersion() |
int |
rawCompress(java.nio.ByteBuffer input,
int inputOffset,
int inputLength,
java.nio.ByteBuffer compressed,
int outputOffset) |
int |
rawCompress(java.lang.Object input,
int inputOffset,
int inputByteLength,
java.lang.Object output,
int outputOffset) |
int |
rawUncompress(java.nio.ByteBuffer compressed,
int inputOffset,
int inputLength,
java.nio.ByteBuffer uncompressed,
int outputOffset) |
int |
rawUncompress(java.lang.Object input,
int inputOffset,
int inputLength,
java.lang.Object output,
int outputOffset) |
void |
throw_error(int errorCode) |
int |
uncompressedLength(java.nio.ByteBuffer compressed,
int offset,
int len) |
int |
uncompressedLength(java.lang.Object input,
int offset,
int len) |
public java.lang.String nativeLibraryVersion()
nativeLibraryVersion in interface SnappyNativeAPIpublic int rawCompress(java.nio.ByteBuffer input,
int inputOffset,
int inputLength,
java.nio.ByteBuffer compressed,
int outputOffset)
throws java.io.IOException
rawCompress in interface SnappyNativeAPIjava.io.IOExceptionpublic int rawCompress(java.lang.Object input,
int inputOffset,
int inputByteLength,
java.lang.Object output,
int outputOffset)
rawCompress in interface SnappyNativeAPIpublic int rawUncompress(java.nio.ByteBuffer compressed,
int inputOffset,
int inputLength,
java.nio.ByteBuffer uncompressed,
int outputOffset)
throws java.io.IOException
rawUncompress in interface SnappyNativeAPIjava.io.IOExceptionpublic int rawUncompress(java.lang.Object input,
int inputOffset,
int inputLength,
java.lang.Object output,
int outputOffset)
throws java.io.IOException
rawUncompress in interface SnappyNativeAPIjava.io.IOExceptionpublic int maxCompressedLength(int source_bytes)
maxCompressedLength in interface SnappyNativeAPIpublic int uncompressedLength(java.nio.ByteBuffer compressed,
int offset,
int len)
throws java.io.IOException
uncompressedLength in interface SnappyNativeAPIjava.io.IOExceptionpublic int uncompressedLength(java.lang.Object input,
int offset,
int len)
throws java.io.IOException
uncompressedLength in interface SnappyNativeAPIjava.io.IOExceptionpublic boolean isValidCompressedBuffer(java.nio.ByteBuffer compressed,
int offset,
int len)
throws java.io.IOException
isValidCompressedBuffer in interface SnappyNativeAPIjava.io.IOExceptionpublic boolean isValidCompressedBuffer(java.lang.Object input,
int offset,
int len)
throws java.io.IOException
isValidCompressedBuffer in interface SnappyNativeAPIjava.io.IOExceptionpublic void arrayCopy(java.lang.Object src,
int offset,
int byteLength,
java.lang.Object dest,
int dOffset)
throws java.io.IOException
arrayCopy in interface SnappyNativeAPIjava.io.IOExceptionpublic void throw_error(int errorCode)
throws java.io.IOException
throw_error in interface SnappyNativeAPIjava.io.IOExceptionCopyright © 2023. All Rights Reserved.