public class LZ4FCompressOptions
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
stableSrc – 1 == src content will remain present on future calls to LZ4F_compress(); skip copying src content within tmp buffer
struct LZ4F_compressOptions_t {
unsigned stableSrc;
unsigned reserved[3];
}| Modifier and Type | Class and Description |
|---|---|
static class |
LZ4FCompressOptions.Buffer
An array of
LZ4FCompressOptions 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 |
STABLESRC
The struct member offsets.
|
| Constructor and Description |
|---|
LZ4FCompressOptions(java.nio.ByteBuffer container)
Creates a
LZ4FCompressOptions instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static LZ4FCompressOptions |
calloc()
Returns a new
LZ4FCompressOptions instance allocated with memCalloc. |
static LZ4FCompressOptions.Buffer |
calloc(int capacity)
Returns a new
LZ4FCompressOptions.Buffer instance allocated with memCalloc. |
static LZ4FCompressOptions |
callocStack()
Returns a new
LZ4FCompressOptions instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LZ4FCompressOptions.Buffer |
callocStack(int capacity)
Returns a new
LZ4FCompressOptions.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LZ4FCompressOptions.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FCompressOptions.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LZ4FCompressOptions |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FCompressOptions instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LZ4FCompressOptions |
create()
Returns a new
LZ4FCompressOptions instance allocated with BufferUtils. |
static LZ4FCompressOptions.Buffer |
create(int capacity)
Returns a new
LZ4FCompressOptions.Buffer instance allocated with BufferUtils. |
static LZ4FCompressOptions |
create(long address)
Returns a new
LZ4FCompressOptions instance for the specified memory address. |
static LZ4FCompressOptions.Buffer |
create(long address,
int capacity)
Create a
LZ4FCompressOptions.Buffer instance at the specified memory. |
static LZ4FCompressOptions |
createSafe(long address)
|
static LZ4FCompressOptions.Buffer |
createSafe(long address,
int capacity)
|
static LZ4FCompressOptions |
malloc()
Returns a new
LZ4FCompressOptions instance allocated with memAlloc. |
static LZ4FCompressOptions.Buffer |
malloc(int capacity)
Returns a new
LZ4FCompressOptions.Buffer instance allocated with memAlloc. |
static LZ4FCompressOptions |
mallocStack()
Returns a new
LZ4FCompressOptions instance allocated on the thread-local MemoryStack. |
static LZ4FCompressOptions.Buffer |
mallocStack(int capacity)
Returns a new
LZ4FCompressOptions.Buffer instance allocated on the thread-local MemoryStack. |
static LZ4FCompressOptions.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FCompressOptions.Buffer instance allocated on the specified MemoryStack. |
static LZ4FCompressOptions |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LZ4FCompressOptions 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 |
nstableSrc(long struct)
Unsafe version of
stableSrc(). |
static void |
nstableSrc(long struct,
int value)
Unsafe version of
stableSrc. |
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. |
LZ4FCompressOptions |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
LZ4FCompressOptions |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
LZ4FCompressOptions |
set(int stableSrc,
java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
|
LZ4FCompressOptions |
set(LZ4FCompressOptions src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stableSrc()
Returns the value of the
stableSrc field. |
LZ4FCompressOptions |
stableSrc(int value)
Sets the specified value to the
stableSrc field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STABLESRC
public static final int RESERVED
public LZ4FCompressOptions(java.nio.ByteBuffer container)
LZ4FCompressOptions 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 stableSrc()
stableSrc field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public LZ4FCompressOptions stableSrc(int value)
stableSrc field.public LZ4FCompressOptions reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public LZ4FCompressOptions reserved(int index, int value)
reserved field.public LZ4FCompressOptions set(int stableSrc, java.nio.IntBuffer reserved)
public LZ4FCompressOptions set(LZ4FCompressOptions src)
src - the source structpublic static LZ4FCompressOptions malloc()
LZ4FCompressOptions instance allocated with memAlloc. The instance must be explicitly freed.public static LZ4FCompressOptions calloc()
LZ4FCompressOptions instance allocated with memCalloc. The instance must be explicitly freed.public static LZ4FCompressOptions create()
LZ4FCompressOptions instance allocated with BufferUtils.public static LZ4FCompressOptions create(long address)
LZ4FCompressOptions instance for the specified memory address.@Nullable public static LZ4FCompressOptions createSafe(long address)
public static LZ4FCompressOptions.Buffer malloc(int capacity)
LZ4FCompressOptions.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LZ4FCompressOptions.Buffer calloc(int capacity)
LZ4FCompressOptions.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LZ4FCompressOptions.Buffer create(int capacity)
LZ4FCompressOptions.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static LZ4FCompressOptions.Buffer create(long address, int capacity)
LZ4FCompressOptions.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static LZ4FCompressOptions.Buffer createSafe(long address, int capacity)
public static LZ4FCompressOptions mallocStack()
LZ4FCompressOptions instance allocated on the thread-local MemoryStack.public static LZ4FCompressOptions callocStack()
LZ4FCompressOptions instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static LZ4FCompressOptions mallocStack(org.lwjgl.system.MemoryStack stack)
LZ4FCompressOptions instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static LZ4FCompressOptions callocStack(org.lwjgl.system.MemoryStack stack)
LZ4FCompressOptions instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static LZ4FCompressOptions.Buffer mallocStack(int capacity)
LZ4FCompressOptions.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static LZ4FCompressOptions.Buffer callocStack(int capacity)
LZ4FCompressOptions.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static LZ4FCompressOptions.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LZ4FCompressOptions.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static LZ4FCompressOptions.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LZ4FCompressOptions.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 nstableSrc(long struct)
stableSrc().public static java.nio.IntBuffer nreserved(long struct)
reserved().public static int nreserved(long struct,
int index)
reserved.public static void nstableSrc(long struct,
int value)
stableSrc.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.