Class ZstdDictDecompress

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ZstdDictDecompress
    extends SharedDictBase
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long nativePtr  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZstdDictDecompress​(byte[] dict)
      Convenience constructor to create a new dictionary for use with fast decompress
      ZstdDictDecompress​(byte[] dict, int offset, int length)
      Create a new dictionary for use with fast decompress
    • Field Detail

      • nativePtr

        private long nativePtr
    • Constructor Detail

      • 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 Detail

      • init

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

        private void free()