org.xerial.snappy
クラス SnappyNative
java.lang.Object
org.xerial.snappy.SnappyNative
public class SnappyNative
- extends Object
Interface to access the native code of Snappy
- 作成者:
- leo
|
メソッドの概要 |
static boolean |
isValidCompressedBuffer(byte[] input,
int offset,
int len)
|
static boolean |
isValidCompressedBuffer(ByteBuffer compressed,
int offset,
int len)
|
static int |
maxCompressedLength(int source_bytes)
|
static String |
nativeLibraryVersion()
|
static int |
rawCompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
|
static int |
rawCompress(ByteBuffer input,
int inputOffset,
int inputLength,
ByteBuffer compressed,
int outputOffset)
|
static int |
rawUncompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
|
static int |
rawUncompress(ByteBuffer compressed,
int inputOffset,
int inputLength,
ByteBuffer uncompressed,
int outputOffset)
|
static void |
throw_error(int errorCode)
|
static int |
uncompressedLength(byte[] input,
int offset,
int len)
|
static int |
uncompressedLength(ByteBuffer compressed,
int offset,
int len)
|
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnappyNative
public SnappyNative()
nativeLibraryVersion
public static String nativeLibraryVersion()
rawCompress
public static int rawCompress(ByteBuffer input,
int inputOffset,
int inputLength,
ByteBuffer compressed,
int outputOffset)
throws SnappyException
- 例外:
SnappyException
rawCompress
public static int rawCompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws SnappyException
- 例外:
SnappyException
rawUncompress
public static int rawUncompress(ByteBuffer compressed,
int inputOffset,
int inputLength,
ByteBuffer uncompressed,
int outputOffset)
throws SnappyException
- 例外:
SnappyException
rawUncompress
public static int rawUncompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws SnappyException
- 例外:
SnappyException
maxCompressedLength
public static int maxCompressedLength(int source_bytes)
uncompressedLength
public static int uncompressedLength(ByteBuffer compressed,
int offset,
int len)
throws SnappyException
- 例外:
SnappyException
uncompressedLength
public static int uncompressedLength(byte[] input,
int offset,
int len)
throws SnappyException
- 例外:
SnappyException
isValidCompressedBuffer
public static boolean isValidCompressedBuffer(ByteBuffer compressed,
int offset,
int len)
throws SnappyException
- 例外:
SnappyException
isValidCompressedBuffer
public static boolean isValidCompressedBuffer(byte[] input,
int offset,
int len)
throws SnappyException
- 例外:
SnappyException
throw_error
public static void throw_error(int errorCode)
throws SnappyException
- 例外:
SnappyException
Copyright © 2011. All Rights Reserved.