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.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 size in bytes.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
ConstructorsConstructorDescriptionLZ4FCompressOptions(ByteBuffer container) Creates aLZ4FCompressOptionsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4FCompressOptionscalloc()Returns a newLZ4FCompressOptionsinstance allocated withmemCalloc.static LZ4FCompressOptions.Buffercalloc(int capacity) Returns a newLZ4FCompressOptions.Bufferinstance allocated withmemCalloc.static LZ4FCompressOptions.Buffercalloc(int capacity, MemoryStack stack) Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FCompressOptionscalloc(MemoryStack stack) Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FCompressOptionscreate()Returns a newLZ4FCompressOptionsinstance allocated withBufferUtils.static LZ4FCompressOptions.Buffercreate(int capacity) Returns a newLZ4FCompressOptions.Bufferinstance allocated withBufferUtils.static LZ4FCompressOptionscreate(long address) Returns a newLZ4FCompressOptionsinstance for the specified memory address.static LZ4FCompressOptions.Buffercreate(long address, int capacity) Create aLZ4FCompressOptions.Bufferinstance at the specified memory.static @Nullable LZ4FCompressOptionscreateSafe(long address) static @Nullable LZ4FCompressOptions.BuffercreateSafe(long address, int capacity) static LZ4FCompressOptionsmalloc()Returns a newLZ4FCompressOptionsinstance allocated withmemAlloc.static LZ4FCompressOptions.Buffermalloc(int capacity) Returns a newLZ4FCompressOptions.Bufferinstance allocated withmemAlloc.static LZ4FCompressOptions.Buffermalloc(int capacity, MemoryStack stack) Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStack.static LZ4FCompressOptionsmalloc(MemoryStack stack) Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStack.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.static intnstableSrc(long struct) Unsafe version ofstableSrc().static voidnstableSrc(long struct, int value) Unsafe version ofstableSrc.reserved()intreserved(int index) reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.Copies the specifiedIntBufferto thereservedfield.Initializes this struct with the specified values.set(LZ4FCompressOptions src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstableSrc(int value) Sets the specified value to thestableSrcfield.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. -
STABLESRC
public static final int STABLESRCThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
LZ4FCompressOptions
Creates aLZ4FCompressOptionsinstance 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<LZ4FCompressOptions>
-
stableSrc
public int stableSrc()- Returns:
- the value of the
stableSrcfield.
-
reserved
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reservedfield.
-
stableSrc
Sets the specified value to thestableSrcfield. -
reserved
Copies the specifiedIntBufferto thereservedfield. -
reserved
Sets the specified value at the specified index of thereservedfield. -
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 newLZ4FCompressOptionsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLZ4FCompressOptionsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLZ4FCompressOptionsinstance allocated withBufferUtils. -
create
Returns a newLZ4FCompressOptionsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FCompressOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLZ4FCompressOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLZ4FCompressOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLZ4FCompressOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStackand 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.
-