public class SnappyNative extends Object implements SnappyNativeAPI
SnappyNativeAPI
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
.
Constructor and Description |
---|
SnappyNative() |
Modifier and Type | Method and Description |
---|---|
void |
arrayCopy(Object src,
int offset,
int byteLength,
Object dest,
int dOffset) |
boolean |
isValidCompressedBuffer(ByteBuffer compressed,
int offset,
int len) |
boolean |
isValidCompressedBuffer(Object input,
int offset,
int len) |
int |
maxCompressedLength(int source_bytes) |
String |
nativeLibraryVersion() |
int |
rawCompress(ByteBuffer input,
int inputOffset,
int inputLength,
ByteBuffer compressed,
int outputOffset) |
int |
rawCompress(Object input,
int inputOffset,
int inputByteLength,
Object output,
int outputOffset) |
int |
rawUncompress(ByteBuffer compressed,
int inputOffset,
int inputLength,
ByteBuffer uncompressed,
int outputOffset) |
int |
rawUncompress(Object input,
int inputOffset,
int inputLength,
Object output,
int outputOffset) |
void |
throw_error(int errorCode) |
int |
uncompressedLength(ByteBuffer compressed,
int offset,
int len) |
int |
uncompressedLength(Object input,
int offset,
int len) |
public String nativeLibraryVersion()
nativeLibraryVersion
in interface SnappyNativeAPI
public int rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset) throws IOException
rawCompress
in interface SnappyNativeAPI
IOException
public int rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset)
rawCompress
in interface SnappyNativeAPI
public int rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset) throws IOException
rawUncompress
in interface SnappyNativeAPI
IOException
public int rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset) throws IOException
rawUncompress
in interface SnappyNativeAPI
IOException
public int maxCompressedLength(int source_bytes)
maxCompressedLength
in interface SnappyNativeAPI
public int uncompressedLength(ByteBuffer compressed, int offset, int len) throws IOException
uncompressedLength
in interface SnappyNativeAPI
IOException
public int uncompressedLength(Object input, int offset, int len) throws IOException
uncompressedLength
in interface SnappyNativeAPI
IOException
public boolean isValidCompressedBuffer(ByteBuffer compressed, int offset, int len) throws IOException
isValidCompressedBuffer
in interface SnappyNativeAPI
IOException
public boolean isValidCompressedBuffer(Object input, int offset, int len) throws IOException
isValidCompressedBuffer
in interface SnappyNativeAPI
IOException
public void arrayCopy(Object src, int offset, int byteLength, Object dest, int dOffset) throws IOException
arrayCopy
in interface SnappyNativeAPI
IOException
public void throw_error(int errorCode) throws IOException
throw_error
in interface SnappyNativeAPI
IOException
Copyright © 2011–2015 xerial.org. All rights reserved.