Package org.lwjgl.util.lz4
Class LZ4FCompressOptions
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct LZ4F_compressOptions_t {
unsigned stableSrc;
unsigned reserved[3];
}
-
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 size in bytes.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
ConstructorsConstructorDescriptionLZ4FCompressOptions
(ByteBuffer container) Creates aLZ4FCompressOptions
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4FCompressOptions
calloc()
Returns a newLZ4FCompressOptions
instance allocated withmemCalloc
.static LZ4FCompressOptions.Buffer
calloc
(int capacity) Returns a newLZ4FCompressOptions.Buffer
instance allocated withmemCalloc
.static LZ4FCompressOptions.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newLZ4FCompressOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FCompressOptions
calloc
(MemoryStack stack) Returns a newLZ4FCompressOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FCompressOptions
Deprecated.static LZ4FCompressOptions.Buffer
callocStack
(int capacity) Deprecated.static LZ4FCompressOptions.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FCompressOptions
callocStack
(MemoryStack stack) Deprecated.static LZ4FCompressOptions
create()
Returns a newLZ4FCompressOptions
instance allocated withBufferUtils
.static LZ4FCompressOptions.Buffer
create
(int capacity) Returns a newLZ4FCompressOptions.Buffer
instance allocated withBufferUtils
.static LZ4FCompressOptions
create
(long address) Returns a newLZ4FCompressOptions
instance for the specified memory address.static LZ4FCompressOptions.Buffer
create
(long address, int capacity) Create aLZ4FCompressOptions.Buffer
instance at the specified memory.static @Nullable LZ4FCompressOptions
createSafe
(long address) static @Nullable LZ4FCompressOptions.Buffer
createSafe
(long address, int capacity) static LZ4FCompressOptions
malloc()
Returns a newLZ4FCompressOptions
instance allocated withmemAlloc
.static LZ4FCompressOptions.Buffer
malloc
(int capacity) Returns a newLZ4FCompressOptions.Buffer
instance allocated withmemAlloc
.static LZ4FCompressOptions.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newLZ4FCompressOptions.Buffer
instance allocated on the specifiedMemoryStack
.static LZ4FCompressOptions
malloc
(MemoryStack stack) Returns a newLZ4FCompressOptions
instance allocated on the specifiedMemoryStack
.static LZ4FCompressOptions
Deprecated.static LZ4FCompressOptions.Buffer
mallocStack
(int capacity) Deprecated.static LZ4FCompressOptions.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FCompressOptions
mallocStack
(MemoryStack stack) Deprecated.static 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
Unsafe version ofreserved
.static int
nstableSrc
(long struct) Unsafe version ofstableSrc()
.static void
nstableSrc
(long struct, int value) Unsafe version ofstableSrc
.reserved()
int
reserved
(int index) reserved
(int index, int value) Sets the specified value at the specified index of thereserved
field.Copies the specifiedIntBuffer
to thereserved
field.Initializes this struct with the specified values.set
(LZ4FCompressOptions src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
stableSrc
(int value) Sets the specified value to thestableSrc
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. -
STABLESRC
public static final int STABLESRCThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
LZ4FCompressOptions
Creates aLZ4FCompressOptions
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<LZ4FCompressOptions>
-
stableSrc
public int stableSrc()- Returns:
- the value of the
stableSrc
field.
-
reserved
- Returns:
- a
IntBuffer
view of thereserved
field.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reserved
field.
-
stableSrc
Sets the specified value to thestableSrc
field. -
reserved
Copies the specifiedIntBuffer
to thereserved
field. -
reserved
Sets the specified value at the specified index of thereserved
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 newLZ4FCompressOptions
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newLZ4FCompressOptions
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newLZ4FCompressOptions
instance allocated withBufferUtils
. -
create
Returns a newLZ4FCompressOptions
instance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FCompressOptions.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newLZ4FCompressOptions.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newLZ4FCompressOptions.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aLZ4FCompressOptions.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 newLZ4FCompressOptions
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newLZ4FCompressOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newLZ4FCompressOptions.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newLZ4FCompressOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nstableSrc
public static int nstableSrc(long struct) Unsafe version ofstableSrc()
. -
nreserved
Unsafe version ofreserved()
. -
nreserved
public static int nreserved(long struct, int index) Unsafe version ofreserved
. -
nstableSrc
public static void nstableSrc(long struct, int value) Unsafe version ofstableSrc
. -
nreserved
Unsafe version ofreserved
. -
nreserved
public static void nreserved(long struct, int index, int value) Unsafe version ofreserved
.
-