public class LZ4FDecompressOptions
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
stableDst – pledges that last 64KB decompressed data will remain available unmodified. This optimization skips storage operations in tmp buffers.reserved[3] – must be set to zero for forward compatibility
struct LZ4F_decompressOptions_t {
unsigned stableDst;
unsigned reserved[3];
}| Modifier and Type | Class and Description |
|---|---|
static class |
LZ4FDecompressOptions.Buffer
An array of
LZ4FDecompressOptions structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
RESERVED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STABLEDST
The struct member offsets.
|
| Constructor and Description |
|---|
LZ4FDecompressOptions(java.nio.ByteBuffer container)
Creates a
LZ4FDecompressOptions instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static LZ4FDecompressOptions |
calloc()
Returns a new
LZ4FDecompressOptions instance allocated with memCalloc. |
static LZ4FDecompressOptions.Buffer |
calloc(int capacity)
Returns a new
LZ4FDecompressOptions.Buffer instance allocated with memCalloc. |
static LZ4FDecompressOptions |
callocStack()
Returns a new
LZ4FDecompressOptions instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LZ4FDecompressOptions.Buffer |
callocStack(int capacity)
Returns a new
LZ4FDecompressOptions.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LZ4FDecompressOptions.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FDecompressOptions.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LZ4FDecompressOptions |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FDecompressOptions instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LZ4FDecompressOptions |
create()
Returns a new
LZ4FDecompressOptions instance allocated with BufferUtils. |
static LZ4FDecompressOptions.Buffer |
create(int capacity)
Returns a new
LZ4FDecompressOptions.Buffer instance allocated with BufferUtils. |
static LZ4FDecompressOptions |
create(long address)
Returns a new
LZ4FDecompressOptions instance for the specified memory address. |
static LZ4FDecompressOptions.Buffer |
create(long address,
int capacity)
Create a
LZ4FDecompressOptions.Buffer instance at the specified memory. |
static LZ4FDecompressOptions |
createSafe(long address)
|
static LZ4FDecompressOptions.Buffer |
createSafe(long address,
int capacity)
|
static LZ4FDecompressOptions |
malloc()
Returns a new
LZ4FDecompressOptions instance allocated with memAlloc. |
static LZ4FDecompressOptions.Buffer |
malloc(int capacity)
Returns a new
LZ4FDecompressOptions.Buffer instance allocated with memAlloc. |
static LZ4FDecompressOptions |
mallocStack()
Returns a new
LZ4FDecompressOptions instance allocated on the thread-local MemoryStack. |
static LZ4FDecompressOptions.Buffer |
mallocStack(int capacity)
Returns a new
LZ4FDecompressOptions.Buffer instance allocated on the thread-local MemoryStack. |
static LZ4FDecompressOptions.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FDecompressOptions.Buffer instance allocated on the specified MemoryStack. |
static LZ4FDecompressOptions |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FDecompressOptions instance allocated on the specified MemoryStack. |
static java.nio.IntBuffer |
nreserved(long struct)
Unsafe version of
reserved(). |
static int |
nreserved(long struct,
int index)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
java.nio.IntBuffer value)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
int index,
int value)
Unsafe version of
reserved. |
static int |
nstableDst(long struct)
Unsafe version of
stableDst(). |
static void |
nstableDst(long struct,
int value)
Unsafe version of
stableDst. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
LZ4FDecompressOptions |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
LZ4FDecompressOptions |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
LZ4FDecompressOptions |
set(int stableDst,
java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
|
LZ4FDecompressOptions |
set(LZ4FDecompressOptions src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stableDst()
Returns the value of the
stableDst field. |
LZ4FDecompressOptions |
stableDst(int value)
Sets the specified value to the
stableDst field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STABLEDST
public static final int RESERVED
public LZ4FDecompressOptions(java.nio.ByteBuffer container)
LZ4FDecompressOptions 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 stableDst()
stableDst field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public LZ4FDecompressOptions stableDst(int value)
stableDst field.public LZ4FDecompressOptions reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public LZ4FDecompressOptions reserved(int index, int value)
reserved field.public LZ4FDecompressOptions set(int stableDst, java.nio.IntBuffer reserved)
public LZ4FDecompressOptions set(LZ4FDecompressOptions src)
src - the source structpublic static LZ4FDecompressOptions malloc()
LZ4FDecompressOptions instance allocated with memAlloc. The instance must be explicitly freed.public static LZ4FDecompressOptions calloc()
LZ4FDecompressOptions instance allocated with memCalloc. The instance must be explicitly freed.public static LZ4FDecompressOptions create()
LZ4FDecompressOptions instance allocated with BufferUtils.public static LZ4FDecompressOptions create(long address)
LZ4FDecompressOptions instance for the specified memory address.@Nullable public static LZ4FDecompressOptions createSafe(long address)
public static LZ4FDecompressOptions.Buffer malloc(int capacity)
LZ4FDecompressOptions.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LZ4FDecompressOptions.Buffer calloc(int capacity)
LZ4FDecompressOptions.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LZ4FDecompressOptions.Buffer create(int capacity)
LZ4FDecompressOptions.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static LZ4FDecompressOptions.Buffer create(long address, int capacity)
LZ4FDecompressOptions.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static LZ4FDecompressOptions.Buffer createSafe(long address, int capacity)
public static LZ4FDecompressOptions mallocStack()
LZ4FDecompressOptions instance allocated on the thread-local MemoryStack.public static LZ4FDecompressOptions callocStack()
LZ4FDecompressOptions instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static LZ4FDecompressOptions mallocStack(org.lwjgl.system.MemoryStack stack)
LZ4FDecompressOptions instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static LZ4FDecompressOptions callocStack(org.lwjgl.system.MemoryStack stack)
LZ4FDecompressOptions instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static LZ4FDecompressOptions.Buffer mallocStack(int capacity)
LZ4FDecompressOptions.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static LZ4FDecompressOptions.Buffer callocStack(int capacity)
LZ4FDecompressOptions.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static LZ4FDecompressOptions.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LZ4FDecompressOptions.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static LZ4FDecompressOptions.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LZ4FDecompressOptions.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 nstableDst(long struct)
stableDst().public static java.nio.IntBuffer nreserved(long struct)
reserved().public static int nreserved(long struct,
int index)
reserved.public static void nstableDst(long struct,
int value)
stableDst.public static void nreserved(long struct,
java.nio.IntBuffer value)
reserved.public static void nreserved(long struct,
int index,
int value)
reserved.Copyright LWJGL. All Rights Reserved. License terms.