public class ZDICTParams
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
compressionLevel – optimize for a specific zstd compression level; 0 means defaultnotificationLevel – write log to stderr; 0 = none (default); 1 = errors; 2 = progression; 3 = details; 4 = debug;dictID – force dictID value; 0 means auto mode (32-bits random value)
struct ZDICT_params_t {
int compressionLevel;
unsigned notificationLevel;
unsigned dictID;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZDICTParams.Buffer
An array of
ZDICTParams structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMPRESSIONLEVEL
The struct member offsets.
|
static int |
DICTID
The struct member offsets.
|
static int |
NOTIFICATIONLEVEL
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
ZDICTParams(java.nio.ByteBuffer container)
Creates a
ZDICTParams instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZDICTParams |
calloc()
Returns a new
ZDICTParams instance allocated with memCalloc. |
static ZDICTParams.Buffer |
calloc(int capacity)
Returns a new
ZDICTParams.Buffer instance allocated with memCalloc. |
static ZDICTParams |
callocStack()
Returns a new
ZDICTParams instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZDICTParams.Buffer |
callocStack(int capacity)
Returns a new
ZDICTParams.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZDICTParams.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZDICTParams |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTParams instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
compressionLevel()
Returns the value of the
compressionLevel field. |
ZDICTParams |
compressionLevel(int value)
Sets the specified value to the
compressionLevel field. |
static ZDICTParams |
create()
Returns a new
ZDICTParams instance allocated with BufferUtils. |
static ZDICTParams.Buffer |
create(int capacity)
Returns a new
ZDICTParams.Buffer instance allocated with BufferUtils. |
static ZDICTParams |
create(long address)
Returns a new
ZDICTParams instance for the specified memory address. |
static ZDICTParams.Buffer |
create(long address,
int capacity)
Create a
ZDICTParams.Buffer instance at the specified memory. |
static ZDICTParams |
createSafe(long address)
|
static ZDICTParams.Buffer |
createSafe(long address,
int capacity)
|
int |
dictID()
Returns the value of the
dictID field. |
ZDICTParams |
dictID(int value)
Sets the specified value to the
dictID field. |
static ZDICTParams |
malloc()
Returns a new
ZDICTParams instance allocated with memAlloc. |
static ZDICTParams.Buffer |
malloc(int capacity)
Returns a new
ZDICTParams.Buffer instance allocated with memAlloc. |
static ZDICTParams |
mallocStack()
Returns a new
ZDICTParams instance allocated on the thread-local MemoryStack. |
static ZDICTParams.Buffer |
mallocStack(int capacity)
Returns a new
ZDICTParams.Buffer instance allocated on the thread-local MemoryStack. |
static ZDICTParams.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTParams.Buffer instance allocated on the specified MemoryStack. |
static ZDICTParams |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTParams instance allocated on the specified MemoryStack. |
static int |
ncompressionLevel(long struct)
Unsafe version of
compressionLevel(). |
static void |
ncompressionLevel(long struct,
int value)
Unsafe version of
compressionLevel. |
static int |
ndictID(long struct)
Unsafe version of
dictID(). |
static void |
ndictID(long struct,
int value)
Unsafe version of
dictID. |
static int |
nnotificationLevel(long struct)
Unsafe version of
notificationLevel(). |
static void |
nnotificationLevel(long struct,
int value)
Unsafe version of
notificationLevel. |
int |
notificationLevel()
Returns the value of the
notificationLevel field. |
ZDICTParams |
notificationLevel(int value)
Sets the specified value to the
notificationLevel field. |
ZDICTParams |
set(int compressionLevel,
int notificationLevel,
int dictID)
Initializes this struct with the specified values.
|
ZDICTParams |
set(ZDICTParams src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int COMPRESSIONLEVEL
public static final int NOTIFICATIONLEVEL
public static final int DICTID
public ZDICTParams(java.nio.ByteBuffer container)
ZDICTParams 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 compressionLevel()
compressionLevel field.public int notificationLevel()
notificationLevel field.public int dictID()
dictID field.public ZDICTParams compressionLevel(int value)
compressionLevel field.public ZDICTParams notificationLevel(int value)
notificationLevel field.public ZDICTParams dictID(int value)
dictID field.public ZDICTParams set(int compressionLevel, int notificationLevel, int dictID)
public ZDICTParams set(ZDICTParams src)
src - the source structpublic static ZDICTParams malloc()
ZDICTParams instance allocated with memAlloc. The instance must be explicitly freed.public static ZDICTParams calloc()
ZDICTParams instance allocated with memCalloc. The instance must be explicitly freed.public static ZDICTParams create()
ZDICTParams instance allocated with BufferUtils.public static ZDICTParams create(long address)
ZDICTParams instance for the specified memory address.@Nullable public static ZDICTParams createSafe(long address)
public static ZDICTParams.Buffer malloc(int capacity)
ZDICTParams.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZDICTParams.Buffer calloc(int capacity)
ZDICTParams.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZDICTParams.Buffer create(int capacity)
ZDICTParams.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZDICTParams.Buffer create(long address, int capacity)
ZDICTParams.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZDICTParams.Buffer createSafe(long address, int capacity)
public static ZDICTParams mallocStack()
ZDICTParams instance allocated on the thread-local MemoryStack.public static ZDICTParams callocStack()
ZDICTParams instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZDICTParams mallocStack(org.lwjgl.system.MemoryStack stack)
ZDICTParams instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZDICTParams callocStack(org.lwjgl.system.MemoryStack stack)
ZDICTParams instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZDICTParams.Buffer mallocStack(int capacity)
ZDICTParams.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZDICTParams.Buffer callocStack(int capacity)
ZDICTParams.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZDICTParams.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZDICTParams.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZDICTParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZDICTParams.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 ncompressionLevel(long struct)
compressionLevel().public static int nnotificationLevel(long struct)
notificationLevel().public static int ndictID(long struct)
dictID().public static void ncompressionLevel(long struct,
int value)
compressionLevel.public static void nnotificationLevel(long struct,
int value)
notificationLevel.public static void ndictID(long struct,
int value)
dictID.Copyright LWJGL. All Rights Reserved. License terms.