Package com.github.luben.zstd
Class ZstdDictDecompress
java.lang.Object
com.github.luben.zstd.AutoCloseBase
com.github.luben.zstd.SharedDictBase
com.github.luben.zstd.ZstdDictDecompress
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZstdDictDecompress
(byte[] dict) Convenience constructor to create a new dictionary for use with fast decompressZstdDictDecompress
(byte[] dict, int offset, int length) Create a new dictionary for use with fast decompress -
Method Summary
Methods inherited from class com.github.luben.zstd.SharedDictBase
finalize
Methods inherited from class com.github.luben.zstd.AutoCloseBase
acquireSharedLock, close, releaseSharedLock, storeFence
-
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 dictionaryoffset
- the offset into the buffer to read fromlength
- 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 classAutoCloseBase
-