Package org.lwjgl.util.lz4
Class LZ4FDecompressOptions
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lz4.LZ4FDecompressOptions
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class LZ4FDecompressOptions extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
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
Layout
struct LZ4F_decompressOptions_t { unsigned stableDst; unsigned reserved[3]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LZ4FDecompressOptions.Buffer
An array ofLZ4FDecompressOptions
structs.
-
Constructor Summary
Constructors Constructor Description LZ4FDecompressOptions(java.nio.ByteBuffer container)
Creates aLZ4FDecompressOptions
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LZ4FDecompressOptions
calloc()
Returns a newLZ4FDecompressOptions
instance allocated withmemCalloc
.static LZ4FDecompressOptions.Buffer
calloc(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withmemCalloc
.static LZ4FDecompressOptions
callocStack()
Returns a newLZ4FDecompressOptions
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static LZ4FDecompressOptions.Buffer
callocStack(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static LZ4FDecompressOptions.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FDecompressOptions
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FDecompressOptions
create()
Returns a newLZ4FDecompressOptions
instance allocated withBufferUtils
.static LZ4FDecompressOptions.Buffer
create(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withBufferUtils
.static LZ4FDecompressOptions
create(long address)
Returns a newLZ4FDecompressOptions
instance for the specified memory address.static LZ4FDecompressOptions.Buffer
create(long address, int capacity)
Create aLZ4FDecompressOptions.Buffer
instance at the specified memory.static LZ4FDecompressOptions
createSafe(long address)
static LZ4FDecompressOptions.Buffer
createSafe(long address, int capacity)
static LZ4FDecompressOptions
malloc()
Returns a newLZ4FDecompressOptions
instance allocated withmemAlloc
.static LZ4FDecompressOptions.Buffer
malloc(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withmemAlloc
.static LZ4FDecompressOptions
mallocStack()
Returns a newLZ4FDecompressOptions
instance allocated on the thread-localMemoryStack
.static LZ4FDecompressOptions.Buffer
mallocStack(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the thread-localMemoryStack
.static LZ4FDecompressOptions.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
.static LZ4FDecompressOptions
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
.static java.nio.IntBuffer
nreserved(long struct)
Unsafe version ofreserved()
.static int
nreserved(long struct, int index)
Unsafe version ofreserved
.static void
nreserved(long struct, int index, int value)
Unsafe version ofreserved
.static void
nreserved(long struct, java.nio.IntBuffer value)
Unsafe version ofreserved
.static int
nstableDst(long struct)
Unsafe version ofstableDst()
.static void
nstableDst(long struct, int value)
Unsafe version ofstableDst
.java.nio.IntBuffer
reserved()
Returns aIntBuffer
view of thereserved
field.int
reserved(int index)
Returns the value at the specified index of thereserved
field.LZ4FDecompressOptions
reserved(int index, int value)
Sets the specified value at the specified index of thereserved
field.LZ4FDecompressOptions
reserved(java.nio.IntBuffer value)
Copies the specifiedIntBuffer
to thereserved
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 thestableDst
field.LZ4FDecompressOptions
stableDst(int value)
Sets the specified value to thestableDst
field.
-
-
-
Constructor Detail
-
LZ4FDecompressOptions
public LZ4FDecompressOptions(java.nio.ByteBuffer container)
Creates aLZ4FDecompressOptions
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
stableDst
public int stableDst()
Returns the value of thestableDst
field.
-
reserved
public java.nio.IntBuffer reserved()
Returns aIntBuffer
view of thereserved
field.
-
reserved
public int reserved(int index)
Returns the value at the specified index of thereserved
field.
-
stableDst
public LZ4FDecompressOptions stableDst(int value)
Sets the specified value to thestableDst
field.
-
reserved
public LZ4FDecompressOptions reserved(java.nio.IntBuffer value)
Copies the specifiedIntBuffer
to thereserved
field.
-
reserved
public LZ4FDecompressOptions reserved(int index, int value)
Sets the specified value at the specified index of thereserved
field.
-
set
public LZ4FDecompressOptions set(int stableDst, java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
-
set
public LZ4FDecompressOptions set(LZ4FDecompressOptions src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static LZ4FDecompressOptions malloc()
Returns a newLZ4FDecompressOptions
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static LZ4FDecompressOptions calloc()
Returns a newLZ4FDecompressOptions
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static LZ4FDecompressOptions create()
Returns a newLZ4FDecompressOptions
instance allocated withBufferUtils
.
-
create
public static LZ4FDecompressOptions create(long address)
Returns a newLZ4FDecompressOptions
instance for the specified memory address.
-
createSafe
@Nullable public static LZ4FDecompressOptions createSafe(long address)
-
malloc
public static LZ4FDecompressOptions.Buffer malloc(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static LZ4FDecompressOptions.Buffer calloc(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static LZ4FDecompressOptions.Buffer create(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static LZ4FDecompressOptions.Buffer create(long address, int capacity)
Create aLZ4FDecompressOptions.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static LZ4FDecompressOptions.Buffer createSafe(long address, int capacity)
-
mallocStack
public static LZ4FDecompressOptions mallocStack()
Returns a newLZ4FDecompressOptions
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static LZ4FDecompressOptions callocStack()
Returns a newLZ4FDecompressOptions
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static LZ4FDecompressOptions mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static LZ4FDecompressOptions callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static LZ4FDecompressOptions.Buffer mallocStack(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static LZ4FDecompressOptions.Buffer callocStack(int capacity)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static LZ4FDecompressOptions.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static LZ4FDecompressOptions.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nstableDst
public static int nstableDst(long struct)
Unsafe version ofstableDst()
.
-
nreserved
public static java.nio.IntBuffer nreserved(long struct)
Unsafe version ofreserved()
.
-
nreserved
public static int nreserved(long struct, int index)
Unsafe version ofreserved
.
-
nstableDst
public static void nstableDst(long struct, int value)
Unsafe version ofstableDst
.
-
nreserved
public static void nreserved(long struct, java.nio.IntBuffer value)
Unsafe version ofreserved
.
-
nreserved
public static void nreserved(long struct, int index, int value)
Unsafe version ofreserved
.
-
-