Class ZstdDictDecompress

All Implemented Interfaces:
Closeable, AutoCloseable

public class ZstdDictDecompress extends SharedDictBase
  • Field Details

    • nativePtr

      private long nativePtr
  • Constructor Details

    • ZstdDictDecompress

      public ZstdDictDecompress(byte[] dict)
      Convenience constructor to create a new dictionary for use with fast decompress
      Parameters:
      dict - buffer containing dictionary to load/parse with exact length
    • ZstdDictDecompress

      public ZstdDictDecompress(byte[] dict, int offset, int length)
      Create a new dictionary for use with fast decompress
      Parameters:
      dict - buffer containing dictionary
      offset - the offset into the buffer to read from
      length - number of bytes to use from the buffer
  • Method Details

    • init

      private void init(byte[] dict, int dict_offset, int dict_size)
    • free

      private void free()
    • doClose

      void doClose()
      Specified by:
      doClose in class AutoCloseBase