Package org.lwjgl.util.lz4
Class LZ4FPreferences
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct LZ4F_preferences_t {
{@link LZ4FFrameInfo LZ4F_frameInfo_t} frameInfo;
int compressionLevel;
unsigned autoFlush;
unsigned favorDecSpeed;
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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionLZ4FPreferences
(ByteBuffer container) Creates aLZ4FPreferences
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
autoFlush
(boolean value) Sets the specified value to theautoFlush
field.static LZ4FPreferences
calloc()
Returns a newLZ4FPreferences
instance allocated withmemCalloc
.static LZ4FPreferences.Buffer
calloc
(int capacity) Returns a newLZ4FPreferences.Buffer
instance allocated withmemCalloc
.static LZ4FPreferences.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newLZ4FPreferences.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FPreferences
calloc
(MemoryStack stack) Returns a newLZ4FPreferences
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FPreferences
Deprecated.static LZ4FPreferences.Buffer
callocStack
(int capacity) Deprecated.static LZ4FPreferences.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FPreferences
callocStack
(MemoryStack stack) Deprecated.int
compressionLevel
(int value) Sets the specified value to thecompressionLevel
field.static LZ4FPreferences
create()
Returns a newLZ4FPreferences
instance allocated withBufferUtils
.static LZ4FPreferences.Buffer
create
(int capacity) Returns a newLZ4FPreferences.Buffer
instance allocated withBufferUtils
.static LZ4FPreferences
create
(long address) Returns a newLZ4FPreferences
instance for the specified memory address.static LZ4FPreferences.Buffer
create
(long address, int capacity) Create aLZ4FPreferences.Buffer
instance at the specified memory.static @Nullable LZ4FPreferences
createSafe
(long address) static @Nullable LZ4FPreferences.Buffer
createSafe
(long address, int capacity) boolean
favorDecSpeed
(boolean value) Sets the specified value to thefavorDecSpeed
field.frameInfo
(Consumer<LZ4FFrameInfo> consumer) Passes theframeInfo
field to the specifiedConsumer
.frameInfo
(LZ4FFrameInfo value) Copies the specifiedLZ4FFrameInfo
to theframeInfo
field.static LZ4FPreferences
malloc()
Returns a newLZ4FPreferences
instance allocated withmemAlloc
.static LZ4FPreferences.Buffer
malloc
(int capacity) Returns a newLZ4FPreferences.Buffer
instance allocated withmemAlloc
.static LZ4FPreferences.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newLZ4FPreferences.Buffer
instance allocated on the specifiedMemoryStack
.static LZ4FPreferences
malloc
(MemoryStack stack) Returns a newLZ4FPreferences
instance allocated on the specifiedMemoryStack
.static LZ4FPreferences
Deprecated.static LZ4FPreferences.Buffer
mallocStack
(int capacity) Deprecated.static LZ4FPreferences.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FPreferences
mallocStack
(MemoryStack stack) Deprecated.static int
nautoFlush
(long struct) Unsafe version ofautoFlush()
.static void
nautoFlush
(long struct, int value) Unsafe version ofautoFlush
.static int
ncompressionLevel
(long struct) Unsafe version ofcompressionLevel()
.static void
ncompressionLevel
(long struct, int value) Unsafe version ofcompressionLevel
.static int
nfavorDecSpeed
(long struct) Unsafe version offavorDecSpeed()
.static void
nfavorDecSpeed
(long struct, int value) Unsafe version offavorDecSpeed
.static LZ4FFrameInfo
nframeInfo
(long struct) Unsafe version offrameInfo()
.static void
nframeInfo
(long struct, LZ4FFrameInfo value) Unsafe version offrameInfo
.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
.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.set
(LZ4FFrameInfo frameInfo, int compressionLevel, boolean autoFlush, boolean favorDecSpeed, IntBuffer reserved) Initializes this struct with the specified values.set
(LZ4FPreferences src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
FRAMEINFO
public static final int FRAMEINFOThe struct member offsets. -
COMPRESSIONLEVEL
public static final int COMPRESSIONLEVELThe struct member offsets. -
AUTOFLUSH
public static final int AUTOFLUSHThe struct member offsets. -
FAVORDECSPEED
public static final int FAVORDECSPEEDThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
LZ4FPreferences
Creates aLZ4FPreferences
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<LZ4FPreferences>
-
frameInfo
- Returns:
- a
LZ4FFrameInfo
view of theframeInfo
field.
-
compressionLevel
public int compressionLevel()- Returns:
- the value of the
compressionLevel
field.
-
autoFlush
public boolean autoFlush()- Returns:
- the value of the
autoFlush
field.
-
favorDecSpeed
public boolean favorDecSpeed()- Returns:
- the value of the
favorDecSpeed
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.
-
frameInfo
Copies the specifiedLZ4FFrameInfo
to theframeInfo
field. -
frameInfo
Passes theframeInfo
field to the specifiedConsumer
. -
compressionLevel
Sets the specified value to thecompressionLevel
field. -
autoFlush
Sets the specified value to theautoFlush
field. -
favorDecSpeed
Sets the specified value to thefavorDecSpeed
field. -
reserved
Copies the specifiedIntBuffer
to thereserved
field. -
reserved
Sets the specified value at the specified index of thereserved
field. -
set
public LZ4FPreferences set(LZ4FFrameInfo frameInfo, int compressionLevel, boolean autoFlush, boolean favorDecSpeed, IntBuffer reserved) 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 newLZ4FPreferences
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newLZ4FPreferences
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newLZ4FPreferences
instance allocated withBufferUtils
. -
create
Returns a newLZ4FPreferences
instance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FPreferences.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newLZ4FPreferences.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newLZ4FPreferences.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aLZ4FPreferences.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 newLZ4FPreferences
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newLZ4FPreferences
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newLZ4FPreferences.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newLZ4FPreferences.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nframeInfo
Unsafe version offrameInfo()
. -
ncompressionLevel
public static int ncompressionLevel(long struct) Unsafe version ofcompressionLevel()
. -
nautoFlush
public static int nautoFlush(long struct) Unsafe version ofautoFlush()
. -
nfavorDecSpeed
public static int nfavorDecSpeed(long struct) Unsafe version offavorDecSpeed()
. -
nreserved
Unsafe version ofreserved()
. -
nreserved
public static int nreserved(long struct, int index) Unsafe version ofreserved
. -
nframeInfo
Unsafe version offrameInfo
. -
ncompressionLevel
public static void ncompressionLevel(long struct, int value) Unsafe version ofcompressionLevel
. -
nautoFlush
public static void nautoFlush(long struct, int value) Unsafe version ofautoFlush
. -
nfavorDecSpeed
public static void nfavorDecSpeed(long struct, int value) Unsafe version offavorDecSpeed
. -
nreserved
Unsafe version ofreserved
. -
nreserved
public static void nreserved(long struct, int index, int value) Unsafe version ofreserved
.
-