public class ZSTDParameters
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct ZSTD_parameters {
ZSTD_compressionParameters cParams;
ZSTD_frameParameters fParams;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDParameters.Buffer
An array of
ZSTDParameters structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CPARAMS
The struct member offsets.
|
static int |
FPARAMS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
ZSTDParameters(java.nio.ByteBuffer container)
Creates a
ZSTDParameters instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDParameters |
calloc()
Returns a new
ZSTDParameters instance allocated with memCalloc. |
static ZSTDParameters.Buffer |
calloc(int capacity)
Returns a new
ZSTDParameters.Buffer instance allocated with memCalloc. |
static ZSTDParameters |
callocStack()
Returns a new
ZSTDParameters instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDParameters.Buffer |
callocStack(int capacity)
Returns a new
ZSTDParameters.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDParameters.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDParameters.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDParameters |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDParameters instance allocated on the specified MemoryStack and initializes all its bits to zero. |
ZSTDCompressionParameters |
cParams()
Returns a
ZSTDCompressionParameters view of the cParams field. |
ZSTDParameters |
cParams(java.util.function.Consumer<ZSTDCompressionParameters> consumer)
Passes the
cParams field to the specified Consumer. |
ZSTDParameters |
cParams(ZSTDCompressionParameters value)
Copies the specified
ZSTDCompressionParameters to the cParams field. |
static ZSTDParameters |
create()
Returns a new
ZSTDParameters instance allocated with BufferUtils. |
static ZSTDParameters.Buffer |
create(int capacity)
Returns a new
ZSTDParameters.Buffer instance allocated with BufferUtils. |
static ZSTDParameters |
create(long address)
Returns a new
ZSTDParameters instance for the specified memory address. |
static ZSTDParameters.Buffer |
create(long address,
int capacity)
Create a
ZSTDParameters.Buffer instance at the specified memory. |
static ZSTDParameters |
createSafe(long address)
|
static ZSTDParameters.Buffer |
createSafe(long address,
int capacity)
|
ZSTDFrameParameters |
fParams()
Returns a
ZSTDFrameParameters view of the fParams field. |
ZSTDParameters |
fParams(java.util.function.Consumer<ZSTDFrameParameters> consumer)
Passes the
fParams field to the specified Consumer. |
ZSTDParameters |
fParams(ZSTDFrameParameters value)
Copies the specified
ZSTDFrameParameters to the fParams field. |
static ZSTDParameters |
malloc()
Returns a new
ZSTDParameters instance allocated with memAlloc. |
static ZSTDParameters.Buffer |
malloc(int capacity)
Returns a new
ZSTDParameters.Buffer instance allocated with memAlloc. |
static ZSTDParameters |
mallocStack()
Returns a new
ZSTDParameters instance allocated on the thread-local MemoryStack. |
static ZSTDParameters.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDParameters.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDParameters.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDParameters.Buffer instance allocated on the specified MemoryStack. |
static ZSTDParameters |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDParameters instance allocated on the specified MemoryStack. |
static ZSTDCompressionParameters |
ncParams(long struct)
Unsafe version of
cParams(). |
static void |
ncParams(long struct,
ZSTDCompressionParameters value)
Unsafe version of
cParams. |
static ZSTDFrameParameters |
nfParams(long struct)
Unsafe version of
fParams(). |
static void |
nfParams(long struct,
ZSTDFrameParameters value)
Unsafe version of
fParams. |
ZSTDParameters |
set(ZSTDCompressionParameters cParams,
ZSTDFrameParameters fParams)
Initializes this struct with the specified values.
|
ZSTDParameters |
set(ZSTDParameters 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 CPARAMS
public static final int FPARAMS
public ZSTDParameters(java.nio.ByteBuffer container)
ZSTDParameters 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 ZSTDCompressionParameters cParams()
ZSTDCompressionParameters view of the cParams field.public ZSTDFrameParameters fParams()
ZSTDFrameParameters view of the fParams field.public ZSTDParameters cParams(ZSTDCompressionParameters value)
ZSTDCompressionParameters to the cParams field.public ZSTDParameters cParams(java.util.function.Consumer<ZSTDCompressionParameters> consumer)
cParams field to the specified Consumer.public ZSTDParameters fParams(ZSTDFrameParameters value)
ZSTDFrameParameters to the fParams field.public ZSTDParameters fParams(java.util.function.Consumer<ZSTDFrameParameters> consumer)
fParams field to the specified Consumer.public ZSTDParameters set(ZSTDCompressionParameters cParams, ZSTDFrameParameters fParams)
public ZSTDParameters set(ZSTDParameters src)
src - the source structpublic static ZSTDParameters malloc()
ZSTDParameters instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDParameters calloc()
ZSTDParameters instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDParameters create()
ZSTDParameters instance allocated with BufferUtils.public static ZSTDParameters create(long address)
ZSTDParameters instance for the specified memory address.@Nullable public static ZSTDParameters createSafe(long address)
public static ZSTDParameters.Buffer malloc(int capacity)
ZSTDParameters.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDParameters.Buffer calloc(int capacity)
ZSTDParameters.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDParameters.Buffer create(int capacity)
ZSTDParameters.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDParameters.Buffer create(long address, int capacity)
ZSTDParameters.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDParameters.Buffer createSafe(long address, int capacity)
public static ZSTDParameters mallocStack()
ZSTDParameters instance allocated on the thread-local MemoryStack.public static ZSTDParameters callocStack()
ZSTDParameters instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDParameters mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDParameters instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDParameters callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDParameters instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDParameters.Buffer mallocStack(int capacity)
ZSTDParameters.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDParameters.Buffer callocStack(int capacity)
ZSTDParameters.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDParameters.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDParameters.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDParameters.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDParameters.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 ZSTDCompressionParameters ncParams(long struct)
cParams().public static ZSTDFrameParameters nfParams(long struct)
fParams().public static void ncParams(long struct,
ZSTDCompressionParameters value)
cParams.public static void nfParams(long struct,
ZSTDFrameParameters value)
fParams.Copyright LWJGL. All Rights Reserved. License terms.