Package org.iq80.leveldb.util
Interface Snappy.SPI
- All Known Implementing Classes:
Snappy.IQ80Snappy,Snappy.XerialSnappy
- Enclosing class:
Snappy
public static interface Snappy.SPI
-
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)
-
Method Details
-
uncompress
- Throws:
IOException
-
uncompress
int uncompress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) throws IOException - Throws:
IOException
-
compress
int compress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) throws IOException - Throws:
IOException
-
compress
- Throws:
IOException
-
maxCompressedLength
int maxCompressedLength(int length)
-