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.NativeResourceLayout
struct LZ4F_decompressOptions_t { unsignedstableDst(); unsignedreserved()[3]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLZ4FDecompressOptions.BufferAn array ofLZ4FDecompressOptionsstructs.
-
Constructor Summary
Constructors Constructor Description LZ4FDecompressOptions(java.nio.ByteBuffer container)Creates aLZ4FDecompressOptionsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LZ4FDecompressOptionscalloc()Returns a newLZ4FDecompressOptionsinstance allocated withmemCalloc.static LZ4FDecompressOptions.Buffercalloc(int capacity)Returns a newLZ4FDecompressOptions.Bufferinstance allocated withmemCalloc.static LZ4FDecompressOptions.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FDecompressOptionscalloc(org.lwjgl.system.MemoryStack stack)Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FDecompressOptionscallocStack()Deprecated.static LZ4FDecompressOptions.BuffercallocStack(int capacity)Deprecated.static LZ4FDecompressOptions.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static LZ4FDecompressOptionscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static LZ4FDecompressOptionscreate()Returns a newLZ4FDecompressOptionsinstance allocated withBufferUtils.static LZ4FDecompressOptions.Buffercreate(int capacity)Returns a newLZ4FDecompressOptions.Bufferinstance allocated withBufferUtils.static LZ4FDecompressOptionscreate(long address)Returns a newLZ4FDecompressOptionsinstance for the specified memory address.static LZ4FDecompressOptions.Buffercreate(long address, int capacity)Create aLZ4FDecompressOptions.Bufferinstance at the specified memory.static LZ4FDecompressOptionscreateSafe(long address)static LZ4FDecompressOptions.BuffercreateSafe(long address, int capacity)static LZ4FDecompressOptionsmalloc()Returns a newLZ4FDecompressOptionsinstance allocated withmemAlloc.static LZ4FDecompressOptions.Buffermalloc(int capacity)Returns a newLZ4FDecompressOptions.Bufferinstance allocated withmemAlloc.static LZ4FDecompressOptions.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStack.static LZ4FDecompressOptionsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStack.static LZ4FDecompressOptionsmallocStack()Deprecated.static LZ4FDecompressOptions.BuffermallocStack(int capacity)Deprecated.static LZ4FDecompressOptions.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static LZ4FDecompressOptionsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.IntBuffernreserved(long struct)Unsafe version ofreserved().static intnreserved(long struct, int index)Unsafe version ofreserved.static voidnreserved(long struct, int index, int value)Unsafe version ofreserved.static voidnreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.static intnstableDst(long struct)Unsafe version ofstableDst().static voidnstableDst(long struct, int value)Unsafe version ofstableDst.java.nio.IntBufferreserved()must be set to zero for forward compatibilityintreserved(int index)must be set to zero for forward compatibilityLZ4FDecompressOptionsreserved(int index, int value)Sets the specified value at the specified index of thereserved()field.LZ4FDecompressOptionsreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereserved()field.LZ4FDecompressOptionsset(int stableDst, java.nio.IntBuffer reserved)Initializes this struct with the specified values.LZ4FDecompressOptionsset(LZ4FDecompressOptions src)Copies the specified struct data to this struct.intsizeof()intstableDst()pledges that last 64KB decompressed data will remain available unmodified.LZ4FDecompressOptionsstableDst(int value)Sets the specified value to thestableDst()field.
-
-
-
Constructor Detail
-
LZ4FDecompressOptions
public LZ4FDecompressOptions(java.nio.ByteBuffer container)
Creates aLZ4FDecompressOptionsinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
stableDst
public int stableDst()
pledges that last 64KB decompressed data will remain available unmodified. This optimization skips storage operations in tmp buffers.
-
reserved
public java.nio.IntBuffer reserved() public int reserved(int index)
must be set to zero for forward compatibility
-
stableDst
public LZ4FDecompressOptions stableDst(int value)
Sets the specified value to thestableDst()field.
-
reserved
public LZ4FDecompressOptions reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto 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 newLZ4FDecompressOptionsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LZ4FDecompressOptions calloc()
Returns a newLZ4FDecompressOptionsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LZ4FDecompressOptions create()
Returns a newLZ4FDecompressOptionsinstance allocated withBufferUtils.
-
create
public static LZ4FDecompressOptions create(long address)
Returns a newLZ4FDecompressOptionsinstance for the specified memory address.
-
createSafe
@Nullable public static LZ4FDecompressOptions createSafe(long address)
-
malloc
public static LZ4FDecompressOptions.Buffer malloc(int capacity)
Returns a newLZ4FDecompressOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LZ4FDecompressOptions.Buffer calloc(int capacity)
Returns a newLZ4FDecompressOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LZ4FDecompressOptions.Buffer create(int capacity)
Returns a newLZ4FDecompressOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LZ4FDecompressOptions.Buffer create(long address, int capacity)
Create aLZ4FDecompressOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LZ4FDecompressOptions.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static LZ4FDecompressOptions mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LZ4FDecompressOptions callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LZ4FDecompressOptions mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LZ4FDecompressOptions callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LZ4FDecompressOptions.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static LZ4FDecompressOptions.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static LZ4FDecompressOptions.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static LZ4FDecompressOptions.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static LZ4FDecompressOptions malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static LZ4FDecompressOptions calloc(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static LZ4FDecompressOptions.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static LZ4FDecompressOptions.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-