Class SlowSnappy
java.lang.Object
com.couchbase.client.core.compression.snappy.repackaged.org.iq80.snappy.v04.SlowSnappy
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
compress
(byte[] data) static int
compress
(byte[] uncompressed, int uncompressedOffset, int uncompressedLength, byte[] compressed, int compressedOffset) static int
getUncompressedLength
(byte[] compressed, int compressedOffset) static int
maxCompressedLength
(int sourceLength) static byte[]
uncompress
(byte[] compressed, int compressedOffset, int compressedSize) static int
uncompress
(byte[] compressed, int compressedOffset, int compressedSize, byte[] uncompressed, int uncompressedOffset)
-
Method Details
-
getUncompressedLength
public static int getUncompressedLength(byte[] compressed, int compressedOffset) throws CorruptionException - Throws:
CorruptionException
-
uncompress
public static byte[] uncompress(byte[] compressed, int compressedOffset, int compressedSize) throws CorruptionException - Throws:
CorruptionException
-
uncompress
public static int uncompress(byte[] compressed, int compressedOffset, int compressedSize, byte[] uncompressed, int uncompressedOffset) throws CorruptionException - Throws:
CorruptionException
-
maxCompressedLength
public static int maxCompressedLength(int sourceLength) -
compress
public static int compress(byte[] uncompressed, int uncompressedOffset, int uncompressedLength, byte[] compressed, int compressedOffset) -
compress
public static byte[] compress(byte[] data)
-