public class ZSTDCompressionParameters
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
windowLog – largest match distance: larger == more compression, more memory needed during decompressionchainLog – fully searched segment: larger == more compression, slower, more memory (useless for fast)hashLog – dispatch table: larger == faster, more memorysearchLog – nb of searches: larger == more compression, slowerminMatch – match length searched: larger == faster decompression, sometimes less compressiontargetLength – acceptable match size for optimal parser (only): larger == more compression, slowerstrategy – see ZSTD_strategy definition
struct ZSTD_compressionParameters {
unsigned int windowLog;
unsigned int chainLog;
unsigned int hashLog;
unsigned int searchLog;
unsigned int minMatch;
unsigned int targetLength;
ZSTD_strategy strategy;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDCompressionParameters.Buffer
An array of
ZSTDCompressionParameters structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CHAINLOG
The struct member offsets.
|
static int |
HASHLOG
The struct member offsets.
|
static int |
MINMATCH
The struct member offsets.
|
static int |
SEARCHLOG
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STRATEGY
The struct member offsets.
|
static int |
TARGETLENGTH
The struct member offsets.
|
static int |
WINDOWLOG
The struct member offsets.
|
| Constructor and Description |
|---|
ZSTDCompressionParameters(java.nio.ByteBuffer container)
Creates a
ZSTDCompressionParameters instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDCompressionParameters |
calloc()
Returns a new
ZSTDCompressionParameters instance allocated with memCalloc. |
static ZSTDCompressionParameters.Buffer |
calloc(int capacity)
Returns a new
ZSTDCompressionParameters.Buffer instance allocated with memCalloc. |
static ZSTDCompressionParameters |
callocStack()
Returns a new
ZSTDCompressionParameters instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDCompressionParameters.Buffer |
callocStack(int capacity)
Returns a new
ZSTDCompressionParameters.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDCompressionParameters.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDCompressionParameters.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDCompressionParameters |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDCompressionParameters instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
chainLog()
Returns the value of the
chainLog field. |
ZSTDCompressionParameters |
chainLog(int value)
Sets the specified value to the
chainLog field. |
static ZSTDCompressionParameters |
create()
Returns a new
ZSTDCompressionParameters instance allocated with BufferUtils. |
static ZSTDCompressionParameters.Buffer |
create(int capacity)
Returns a new
ZSTDCompressionParameters.Buffer instance allocated with BufferUtils. |
static ZSTDCompressionParameters |
create(long address)
Returns a new
ZSTDCompressionParameters instance for the specified memory address. |
static ZSTDCompressionParameters.Buffer |
create(long address,
int capacity)
Create a
ZSTDCompressionParameters.Buffer instance at the specified memory. |
static ZSTDCompressionParameters |
createSafe(long address)
|
static ZSTDCompressionParameters.Buffer |
createSafe(long address,
int capacity)
|
int |
hashLog()
Returns the value of the
hashLog field. |
ZSTDCompressionParameters |
hashLog(int value)
Sets the specified value to the
hashLog field. |
static ZSTDCompressionParameters |
malloc()
Returns a new
ZSTDCompressionParameters instance allocated with memAlloc. |
static ZSTDCompressionParameters.Buffer |
malloc(int capacity)
Returns a new
ZSTDCompressionParameters.Buffer instance allocated with memAlloc. |
static ZSTDCompressionParameters |
mallocStack()
Returns a new
ZSTDCompressionParameters instance allocated on the thread-local MemoryStack. |
static ZSTDCompressionParameters.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDCompressionParameters.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDCompressionParameters.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDCompressionParameters.Buffer instance allocated on the specified MemoryStack. |
static ZSTDCompressionParameters |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDCompressionParameters instance allocated on the specified MemoryStack. |
int |
minMatch()
Returns the value of the
minMatch field. |
ZSTDCompressionParameters |
minMatch(int value)
Sets the specified value to the
minMatch field. |
static int |
nchainLog(long struct)
Unsafe version of
chainLog(). |
static void |
nchainLog(long struct,
int value)
Unsafe version of
chainLog. |
static int |
nhashLog(long struct)
Unsafe version of
hashLog(). |
static void |
nhashLog(long struct,
int value)
Unsafe version of
hashLog. |
static int |
nminMatch(long struct)
Unsafe version of
minMatch(). |
static void |
nminMatch(long struct,
int value)
Unsafe version of
minMatch. |
static int |
nsearchLog(long struct)
Unsafe version of
searchLog(). |
static void |
nsearchLog(long struct,
int value)
Unsafe version of
searchLog. |
static int |
nstrategy(long struct)
Unsafe version of
strategy(). |
static void |
nstrategy(long struct,
int value)
Unsafe version of
strategy. |
static int |
ntargetLength(long struct)
Unsafe version of
targetLength(). |
static void |
ntargetLength(long struct,
int value)
Unsafe version of
targetLength. |
static int |
nwindowLog(long struct)
Unsafe version of
windowLog(). |
static void |
nwindowLog(long struct,
int value)
Unsafe version of
windowLog. |
int |
searchLog()
Returns the value of the
searchLog field. |
ZSTDCompressionParameters |
searchLog(int value)
Sets the specified value to the
searchLog field. |
ZSTDCompressionParameters |
set(int windowLog,
int chainLog,
int hashLog,
int searchLog,
int minMatch,
int targetLength,
int strategy)
Initializes this struct with the specified values.
|
ZSTDCompressionParameters |
set(ZSTDCompressionParameters src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
strategy()
Returns the value of the
strategy field. |
ZSTDCompressionParameters |
strategy(int value)
Sets the specified value to the
strategy field. |
int |
targetLength()
Returns the value of the
targetLength field. |
ZSTDCompressionParameters |
targetLength(int value)
Sets the specified value to the
targetLength field. |
int |
windowLog()
Returns the value of the
windowLog field. |
ZSTDCompressionParameters |
windowLog(int value)
Sets the specified value to the
windowLog field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WINDOWLOG
public static final int CHAINLOG
public static final int HASHLOG
public static final int SEARCHLOG
public static final int MINMATCH
public static final int TARGETLENGTH
public static final int STRATEGY
public ZSTDCompressionParameters(java.nio.ByteBuffer container)
ZSTDCompressionParameters instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int windowLog()
windowLog field.public int chainLog()
chainLog field.public int hashLog()
hashLog field.public int searchLog()
searchLog field.public int minMatch()
minMatch field.public int targetLength()
targetLength field.public int strategy()
strategy field.public ZSTDCompressionParameters windowLog(int value)
windowLog field.public ZSTDCompressionParameters chainLog(int value)
chainLog field.public ZSTDCompressionParameters hashLog(int value)
hashLog field.public ZSTDCompressionParameters searchLog(int value)
searchLog field.public ZSTDCompressionParameters minMatch(int value)
minMatch field.public ZSTDCompressionParameters targetLength(int value)
targetLength field.public ZSTDCompressionParameters strategy(int value)
strategy field.public ZSTDCompressionParameters set(int windowLog, int chainLog, int hashLog, int searchLog, int minMatch, int targetLength, int strategy)
public ZSTDCompressionParameters set(ZSTDCompressionParameters src)
src - the source structpublic static ZSTDCompressionParameters malloc()
ZSTDCompressionParameters instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDCompressionParameters calloc()
ZSTDCompressionParameters instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDCompressionParameters create()
ZSTDCompressionParameters instance allocated with BufferUtils.public static ZSTDCompressionParameters create(long address)
ZSTDCompressionParameters instance for the specified memory address.@Nullable public static ZSTDCompressionParameters createSafe(long address)
public static ZSTDCompressionParameters.Buffer malloc(int capacity)
ZSTDCompressionParameters.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDCompressionParameters.Buffer calloc(int capacity)
ZSTDCompressionParameters.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDCompressionParameters.Buffer create(int capacity)
ZSTDCompressionParameters.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDCompressionParameters.Buffer create(long address, int capacity)
ZSTDCompressionParameters.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDCompressionParameters.Buffer createSafe(long address, int capacity)
public static ZSTDCompressionParameters mallocStack()
ZSTDCompressionParameters instance allocated on the thread-local MemoryStack.public static ZSTDCompressionParameters callocStack()
ZSTDCompressionParameters instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDCompressionParameters mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDCompressionParameters instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDCompressionParameters callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDCompressionParameters instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDCompressionParameters.Buffer mallocStack(int capacity)
ZSTDCompressionParameters.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDCompressionParameters.Buffer callocStack(int capacity)
ZSTDCompressionParameters.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDCompressionParameters.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDCompressionParameters.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDCompressionParameters.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDCompressionParameters.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nwindowLog(long struct)
windowLog().public static int nchainLog(long struct)
chainLog().public static int nhashLog(long struct)
hashLog().public static int nsearchLog(long struct)
searchLog().public static int nminMatch(long struct)
minMatch().public static int ntargetLength(long struct)
targetLength().public static int nstrategy(long struct)
strategy().public static void nwindowLog(long struct,
int value)
windowLog.public static void nchainLog(long struct,
int value)
chainLog.public static void nhashLog(long struct,
int value)
hashLog.public static void nsearchLog(long struct,
int value)
searchLog.public static void nminMatch(long struct,
int value)
minMatch.public static void ntargetLength(long struct,
int value)
targetLength.public static void nstrategy(long struct,
int value)
strategy.Copyright LWJGL. All Rights Reserved. License terms.