Top Fields Constructors Methods
com.github.luben.zstd

public Class ZstdDictDecompress

extends SharedDictBase
Class Inheritance
Imports
java.nio.ByteBuffer, com.github.luben.zstd.util.Native

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
public
ZstdDictDecompress(byte[]
buffer containing dictionary to load/parse with exact length
dict
)

Convenience constructor to create a new dictionary for use with fast decompress

public
ZstdDictDecompress(byte[]
buffer containing dictionary
dict
,
int
the offset into the buffer to read from
offset
,
int
number of bytes to use from the buffer
length
)

Create a new dictionary for use with fast decompress

public
ZstdDictDecompress(ByteBuffer
Direct ByteBuffer containing dictionary using position and limit to define range in buffer.
dict
)

Create a new dictionary for use with fast decompress.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private native void
free()

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

private native void
initDirect(ByteBuffer dict, int dict_offset, int dict_size)

Inherited from com.github.luben.zstd.SharedDictBase:
finalize

Field Detail

nativePtrback to summary
private long nativePtr

Constructor Detail

ZstdDictDecompressback to summary
public ZstdDictDecompress(byte[] dict)

Convenience constructor to create a new dictionary for use with fast decompress

Parameters
dict:byte[]

buffer containing dictionary to load/parse with exact length

ZstdDictDecompressback to summary
public ZstdDictDecompress(byte[] dict, int offset, int length)

Create a new dictionary for use with fast decompress

Parameters
dict:byte[]

buffer containing dictionary

offset:int

the offset into the buffer to read from

length:int

number of bytes to use from the buffer

ZstdDictDecompressback to summary
public ZstdDictDecompress(ByteBuffer dict)

Create a new dictionary for use with fast decompress. The provided bytebuffer is available for reuse when the method returns.

Parameters
dict:ByteBuffer

Direct ByteBuffer containing dictionary using position and limit to define range in buffer.

Method Detail

doCloseback to summary
pack-priv void doClose()

Implements abstract com.github.luben.zstd.AutoCloseBase.doClose.

Annotations
@Override
freeback to summary
private native void free()
initback to summary
private native void init(byte[] dict, int dict_offset, int dict_size)
initDirectback to summary
private native void initDirect(ByteBuffer dict, int dict_offset, int dict_size)