Package org.lwjgl.util.lz4
Class LZ4FDecompressOptions
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct LZ4F_decompressOptions_t {
unsigned stableDst;
unsigned skipChecksums;
unsigned reserved1;
unsigned reserved0;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionLZ4FDecompressOptions
(ByteBuffer container) Creates aLZ4FDecompressOptions
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4FDecompressOptions
calloc()
Returns a newLZ4FDecompressOptions
instance allocated withmemCalloc
.static LZ4FDecompressOptions.Buffer
calloc
(int capacity) Returns a newLZ4FDecompressOptions.Buffer
instance allocated withmemCalloc
.static LZ4FDecompressOptions.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FDecompressOptions
calloc
(MemoryStack stack) Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FDecompressOptions
Deprecated.static LZ4FDecompressOptions.Buffer
callocStack
(int capacity) Deprecated.static LZ4FDecompressOptions.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FDecompressOptions
callocStack
(MemoryStack stack) Deprecated.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 @Nullable LZ4FDecompressOptions
createSafe
(long address) static @Nullable 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.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
.static LZ4FDecompressOptions
malloc
(MemoryStack stack) Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
.static LZ4FDecompressOptions
Deprecated.static LZ4FDecompressOptions.Buffer
mallocStack
(int capacity) Deprecated.static LZ4FDecompressOptions.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FDecompressOptions
mallocStack
(MemoryStack stack) Deprecated.static int
nreserved0
(long struct) Unsafe version ofreserved0()
.static void
nreserved0
(long struct, int value) Unsafe version ofreserved0
.static int
nreserved1
(long struct) Unsafe version ofreserved1()
.static void
nreserved1
(long struct, int value) Unsafe version ofreserved1
.static int
nskipChecksums
(long struct) Unsafe version ofskipChecksums()
.static void
nskipChecksums
(long struct, int value) Unsafe version ofskipChecksums
.static int
nstableDst
(long struct) Unsafe version ofstableDst()
.static void
nstableDst
(long struct, int value) Unsafe version ofstableDst
.int
reserved0
(int value) Sets the specified value to thereserved0
field.int
reserved1
(int value) Sets the specified value to thereserved1
field.set
(int stableDst, int skipChecksums, int reserved1, int reserved0) Initializes this struct with the specified values.set
(LZ4FDecompressOptions src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
skipChecksums
(int value) Sets the specified value to theskipChecksums
field.int
stableDst
(int value) Sets the specified value to thestableDst
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STABLEDST
public static final int STABLEDSTThe struct member offsets. -
SKIPCHECKSUMS
public static final int SKIPCHECKSUMSThe struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
RESERVED0
public static final int RESERVED0The struct member offsets.
-
-
Constructor Details
-
LZ4FDecompressOptions
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<LZ4FDecompressOptions>
-
stableDst
public int stableDst()- Returns:
- the value of the
stableDst
field.
-
skipChecksums
public int skipChecksums()- Returns:
- the value of the
skipChecksums
field.
-
reserved1
public int reserved1()- Returns:
- the value of the
reserved1
field.
-
reserved0
public int reserved0()- Returns:
- the value of the
reserved0
field.
-
stableDst
Sets the specified value to thestableDst
field. -
skipChecksums
Sets the specified value to theskipChecksums
field. -
reserved1
Sets the specified value to thereserved1
field. -
reserved0
Sets the specified value to thereserved0
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newLZ4FDecompressOptions
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newLZ4FDecompressOptions
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newLZ4FDecompressOptions
instance allocated withBufferUtils
. -
create
Returns a newLZ4FDecompressOptions
instance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newLZ4FDecompressOptions.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aLZ4FDecompressOptions.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newLZ4FDecompressOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newLZ4FDecompressOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nstableDst
public static int nstableDst(long struct) Unsafe version ofstableDst()
. -
nskipChecksums
public static int nskipChecksums(long struct) Unsafe version ofskipChecksums()
. -
nreserved1
public static int nreserved1(long struct) Unsafe version ofreserved1()
. -
nreserved0
public static int nreserved0(long struct) Unsafe version ofreserved0()
. -
nstableDst
public static void nstableDst(long struct, int value) Unsafe version ofstableDst
. -
nskipChecksums
public static void nskipChecksums(long struct, int value) Unsafe version ofskipChecksums
. -
nreserved1
public static void nreserved1(long struct, int value) Unsafe version ofreserved1
. -
nreserved0
public static void nreserved0(long struct, int value) Unsafe version ofreserved0
.
-