java.lang.Object
com.couchbase.client.core.compression.snappy.repackaged.org.iq80.snappy.v04.SlowSnappy

@Internal public final class SlowSnappy extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)