Package com.github.luben.zstd
Class ZstdDictDecompress
java.lang.Object
com.github.luben.zstd.ZstdDictDecompress
- All Implemented Interfaces:
Closeable,AutoCloseable
-
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 decompressZstdDictDecompress(ByteBuffer dict) Create a new dictionary for use with fast decompress.ZstdDictDecompress(ByteBuffer dict, boolean byReference) Create a new dictionary for use with fast decompress. -
Method Summary
-
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
-
ZstdDictDecompress
Create a new dictionary for use with fast decompress. The provided bytebuffer is available for reuse when the method returns.- Parameters:
dict- Direct ByteBuffer containing dictionary using position and limit to define range in buffer.
-
ZstdDictDecompress
Create a new dictionary for use with fast decompress. If byReference is true, then the native code does not copy the data but keeps a reference to the byte buffer, which must then not be modified before this context has been closed.- Parameters:
dict- Direct ByteBuffer containing dictionary using position and limit to define range in buffer.byReference- tell the native part to use the byte buffer directly and not copy the data when true.
-
-
Method Details