Package org.lwjgl.util.lz4
Class LZ4FDecompressOptions
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<LZ4FDecompressOptions>
org.lwjgl.util.lz4.LZ4FDecompressOptions
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class LZ4FDecompressOptions
extends org.lwjgl.system.Struct<LZ4FDecompressOptions>
implements org.lwjgl.system.NativeResource
Layout
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
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 size in bytes.static final intThe struct member offsets.static final intThe 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 aLZ4FDecompressOptionsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 LZ4FDecompressOptionsDeprecated.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 @Nullable LZ4FDecompressOptionscreateSafe(long address) static @Nullable 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 LZ4FDecompressOptionsDeprecated.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 intnreserved0(long struct) Unsafe version ofreserved0().static voidnreserved0(long struct, int value) Unsafe version ofreserved0.static intnreserved1(long struct) Unsafe version ofreserved1().static voidnreserved1(long struct, int value) Unsafe version ofreserved1.static intnskipChecksums(long struct) Unsafe version ofskipChecksums().static voidnskipChecksums(long struct, int value) Unsafe version ofskipChecksums.static intnstableDst(long struct) Unsafe version ofstableDst().static voidnstableDst(long struct, int value) Unsafe version ofstableDst.intidemreserved0(int value) Sets the specified value to thereserved0()field.intmust be set to zero for forward compatibilityreserved1(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.intsizeof()intdisable checksum calculation and verification, even when one is present in frame, to save CPU time.skipChecksums(int value) Sets the specified value to theskipChecksums()field.intpledges that last 64KB decompressed data is present right beforedstBufferpointer.stableDst(int value) Sets the specified value to thestableDst()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
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 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<LZ4FDecompressOptions>
-
stableDst
public int stableDst()pledges that last 64KB decompressed data is present right beforedstBufferpointer.This optimization skips internal storage operations. Once set, this pledge must remain valid up to the end of current frame.
-
skipChecksums
public int skipChecksums()disable checksum calculation and verification, even when one is present in frame, to save CPU time.Setting this option to 1 once disables all checksums for the rest of the frame.
-
reserved1
public int reserved1()must be set to zero for forward compatibility -
reserved0
public int reserved0()idem -
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 newLZ4FDecompressOptionsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLZ4FDecompressOptionsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLZ4FDecompressOptionsinstance allocated withBufferUtils. -
create
Returns a newLZ4FDecompressOptionsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FDecompressOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLZ4FDecompressOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLZ4FDecompressOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLZ4FDecompressOptions.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 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
Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStackand 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.
-