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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aLZ4FPreferencesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanautoFlush(boolean value) Sets the specified value to theautoFlushfield.static LZ4FPreferencescalloc()Returns a newLZ4FPreferencesinstance allocated withmemCalloc.static LZ4FPreferences.Buffercalloc(int capacity) Returns a newLZ4FPreferences.Bufferinstance allocated withmemCalloc.static LZ4FPreferences.Buffercalloc(int capacity, MemoryStack stack) Returns a newLZ4FPreferences.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FPreferencescalloc(MemoryStack stack) Returns a newLZ4FPreferencesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FPreferencesDeprecated.static LZ4FPreferences.BuffercallocStack(int capacity) Deprecated.static LZ4FPreferences.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static LZ4FPreferencescallocStack(MemoryStack stack) Deprecated.intcompressionLevel(int value) Sets the specified value to thecompressionLevelfield.static LZ4FPreferencescreate()Returns a newLZ4FPreferencesinstance allocated withBufferUtils.static LZ4FPreferences.Buffercreate(int capacity) Returns a newLZ4FPreferences.Bufferinstance allocated withBufferUtils.static LZ4FPreferencescreate(long address) Returns a newLZ4FPreferencesinstance for the specified memory address.static LZ4FPreferences.Buffercreate(long address, int capacity) Create aLZ4FPreferences.Bufferinstance at the specified memory.static @Nullable LZ4FPreferencescreateSafe(long address) static @Nullable LZ4FPreferences.BuffercreateSafe(long address, int capacity) booleanfavorDecSpeed(boolean value) Sets the specified value to thefavorDecSpeedfield.frameInfo(Consumer<LZ4FFrameInfo> consumer) Passes theframeInfofield to the specifiedConsumer.frameInfo(LZ4FFrameInfo value) Copies the specifiedLZ4FFrameInfoto theframeInfofield.static LZ4FPreferencesmalloc()Returns a newLZ4FPreferencesinstance allocated withmemAlloc.static LZ4FPreferences.Buffermalloc(int capacity) Returns a newLZ4FPreferences.Bufferinstance allocated withmemAlloc.static LZ4FPreferences.Buffermalloc(int capacity, MemoryStack stack) Returns a newLZ4FPreferences.Bufferinstance allocated on the specifiedMemoryStack.static LZ4FPreferencesmalloc(MemoryStack stack) Returns a newLZ4FPreferencesinstance allocated on the specifiedMemoryStack.static LZ4FPreferencesDeprecated.static LZ4FPreferences.BuffermallocStack(int capacity) Deprecated.static LZ4FPreferences.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static LZ4FPreferencesmallocStack(MemoryStack stack) Deprecated.static intnautoFlush(long struct) Unsafe version ofautoFlush().static voidnautoFlush(long struct, int value) Unsafe version ofautoFlush.static intncompressionLevel(long struct) Unsafe version ofcompressionLevel().static voidncompressionLevel(long struct, int value) Unsafe version ofcompressionLevel.static intnfavorDecSpeed(long struct) Unsafe version offavorDecSpeed().static voidnfavorDecSpeed(long struct, int value) Unsafe version offavorDecSpeed.static LZ4FFrameInfonframeInfo(long struct) Unsafe version offrameInfo().static voidnframeInfo(long struct, LZ4FFrameInfo value) Unsafe version offrameInfo.static 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 voidUnsafe version ofreserved.reserved()intreserved(int index) reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.Copies the specifiedIntBufferto thereservedfield.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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aLZ4FPreferencesinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<LZ4FPreferences>
-
frameInfo
- Returns:
- a
LZ4FFrameInfoview of theframeInfofield.
-
compressionLevel
public int compressionLevel()- Returns:
- the value of the
compressionLevelfield.
-
autoFlush
public boolean autoFlush()- Returns:
- the value of the
autoFlushfield.
-
favorDecSpeed
public boolean favorDecSpeed()- Returns:
- the value of the
favorDecSpeedfield.
-
reserved
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reservedfield.
-
frameInfo
Copies the specifiedLZ4FFrameInfoto theframeInfofield. -
frameInfo
Passes theframeInfofield to the specifiedConsumer. -
compressionLevel
Sets the specified value to thecompressionLevelfield. -
autoFlush
Sets the specified value to theautoFlushfield. -
favorDecSpeed
Sets the specified value to thefavorDecSpeedfield. -
reserved
Copies the specifiedIntBufferto thereservedfield. -
reserved
Sets the specified value at the specified index of thereservedfield. -
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 newLZ4FPreferencesinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLZ4FPreferencesinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLZ4FPreferencesinstance allocated withBufferUtils. -
create
Returns a newLZ4FPreferencesinstance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FPreferences.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLZ4FPreferences.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLZ4FPreferences.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLZ4FPreferences.Bufferinstance 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 newLZ4FPreferencesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLZ4FPreferencesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLZ4FPreferences.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLZ4FPreferences.Bufferinstance allocated on the specifiedMemoryStackand 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.
-