Top Description Methods
org.xerial.snappy

public Interface SnappyApi

Known Direct Implementers
org.xerial.snappy.SnappyNative
Imports
java.io.IOException, java.nio.ByteBuffer

Snappy compressor/decompressor interface. The implementation can be JNI binding or pure-java Snappy implementation.

Method Summary

Modifier and TypeMethod and Description
public void
arrayCopy(Object src, int offset, int byteLength, Object dest, int dOffset)

public boolean
isValidCompressedBuffer(ByteBuffer compressed, int offset, int len)

public boolean
isValidCompressedBuffer(Object input, int offset, int len)

public boolean
isValidCompressedBuffer(long inputAddr, long offset, long len)

public int
maxCompressedLength(int source_bytes)

public long
rawCompress(long inputAddr, long inputSize, long destAddr)

public int
rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset)

public int
rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset)

public long
rawUncompress(long inputAddr, long inputSize, long destAddr)

public int
rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset)

public int
rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset)

public int
uncompressedLength(ByteBuffer compressed, int offset, int len)

public int
uncompressedLength(Object input, int offset, int len)

public long
uncompressedLength(long inputAddr, long len)

Method Detail

arrayCopyback to summary
public void arrayCopy(Object src, int offset, int byteLength, Object dest, int dOffset) throws IOException
isValidCompressedBufferback to summary
public boolean isValidCompressedBuffer(ByteBuffer compressed, int offset, int len) throws IOException
isValidCompressedBufferback to summary
public boolean isValidCompressedBuffer(Object input, int offset, int len) throws IOException
isValidCompressedBufferback to summary
public boolean isValidCompressedBuffer(long inputAddr, long offset, long len) throws IOException
maxCompressedLengthback to summary
public int maxCompressedLength(int source_bytes)
rawCompressback to summary
public long rawCompress(long inputAddr, long inputSize, long destAddr) throws IOException
rawCompressback to summary
public int rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset) throws IOException
rawCompressback to summary
public int rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset) throws IOException
rawUncompressback to summary
public long rawUncompress(long inputAddr, long inputSize, long destAddr) throws IOException
rawUncompressback to summary
public int rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset) throws IOException
rawUncompressback to summary
public int rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset) throws IOException
uncompressedLengthback to summary
public int uncompressedLength(ByteBuffer compressed, int offset, int len) throws IOException
uncompressedLengthback to summary
public int uncompressedLength(Object input, int offset, int len) throws IOException
uncompressedLengthback to summary
public long uncompressedLength(long inputAddr, long len) throws IOException