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.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 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, MemoryStack stack) Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FDecompressOptionscalloc(MemoryStack stack) Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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, MemoryStack stack) Returns a newLZ4FDecompressOptions.Bufferinstance allocated on the specifiedMemoryStack.static LZ4FDecompressOptionsmalloc(MemoryStack stack) Returns a newLZ4FDecompressOptionsinstance allocated on the specifiedMemoryStack.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.intreserved0(int value) Sets the specified value to thereserved0field.intreserved1(int value) Sets the specified value to thereserved1field.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()Returnssizeof(struct).intskipChecksums(int value) Sets the specified value to theskipChecksumsfield.intstableDst(int value) Sets the specified value to thestableDstfield.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. -
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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<LZ4FDecompressOptions>
-
stableDst
public int stableDst()- Returns:
- the value of the
stableDstfield.
-
skipChecksums
public int skipChecksums()- Returns:
- the value of the
skipChecksumsfield.
-
reserved1
public int reserved1()- Returns:
- the value of the
reserved1field.
-
reserved0
public int reserved0()- Returns:
- the value of the
reserved0field.
-
stableDst
Sets the specified value to thestableDstfield. -
skipChecksums
Sets the specified value to theskipChecksumsfield. -
reserved1
Sets the specified value to thereserved1field. -
reserved0
Sets the specified value to thereserved0field. -
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
-
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.
-