Package org.iq80.leveldb.util
Class Snappy.XerialSnappy
java.lang.Object
org.iq80.leveldb.util.Snappy.XerialSnappy
- All Implemented Interfaces:
Snappy.SPI
- Enclosing class:
Snappy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) byte[]intmaxCompressedLength(int length) intuncompress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) intuncompress(ByteBuffer compressed, ByteBuffer uncompressed)
-
Constructor Details
-
XerialSnappy
public XerialSnappy()
-
-
Method Details
-
uncompress
- Specified by:
uncompressin interfaceSnappy.SPI- Throws:
IOException
-
uncompress
public int uncompress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) throws IOException - Specified by:
uncompressin interfaceSnappy.SPI- Throws:
IOException
-
compress
public int compress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) throws IOException - Specified by:
compressin interfaceSnappy.SPI- Throws:
IOException
-
compress
- Specified by:
compressin interfaceSnappy.SPI- Throws:
IOException
-
maxCompressedLength
public int maxCompressedLength(int length) - Specified by:
maxCompressedLengthin interfaceSnappy.SPI
-