Package org.lwjgl.util.lz4
Class LZ4FCompressOptions
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lz4.LZ4FCompressOptions
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class LZ4FCompressOptions extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct LZ4F_compressOptions_t { unsignedstableSrc(); unsigned reserved[3]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLZ4FCompressOptions.BufferAn array ofLZ4FCompressOptionsstructs.
-
Constructor Summary
Constructors Constructor Description LZ4FCompressOptions(java.nio.ByteBuffer container)Creates aLZ4FCompressOptionsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LZ4FCompressOptionscalloc()Returns a newLZ4FCompressOptionsinstance allocated withmemCalloc.static LZ4FCompressOptions.Buffercalloc(int capacity)Returns a newLZ4FCompressOptions.Bufferinstance allocated withmemCalloc.static LZ4FCompressOptions.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FCompressOptionscalloc(org.lwjgl.system.MemoryStack stack)Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FCompressOptionscallocStack()Deprecated.static LZ4FCompressOptions.BuffercallocStack(int capacity)Deprecated.static LZ4FCompressOptions.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static LZ4FCompressOptionscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 LZ4FCompressOptionscreateSafe(long address)static 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, org.lwjgl.system.MemoryStack stack)Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStack.static LZ4FCompressOptionsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStack.static LZ4FCompressOptionsmallocStack()Deprecated.static LZ4FCompressOptions.BuffermallocStack(int capacity)Deprecated.static LZ4FCompressOptions.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static LZ4FCompressOptionsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.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 voidnreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.static intnstableSrc(long struct)Unsafe version ofstableSrc().static voidnstableSrc(long struct, int value)Unsafe version ofstableSrc.java.nio.IntBufferreserved()intreserved(int index)LZ4FCompressOptionsreserved(int index, int value)Sets the specified value at the specified index of thereservedfield.LZ4FCompressOptionsreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereservedfield.LZ4FCompressOptionsset(int stableSrc, java.nio.IntBuffer reserved)Initializes this struct with the specified values.LZ4FCompressOptionsset(LZ4FCompressOptions src)Copies the specified struct data to this struct.intsizeof()intstableSrc()1 == srccontent will remain present on future calls toLZ4F_compress(); skip copyingsrccontent withintmpbufferLZ4FCompressOptionsstableSrc(int value)Sets the specified value to thestableSrc()field.
-
-
-
Constructor Detail
-
LZ4FCompressOptions
public LZ4FCompressOptions(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
stableSrc
public int stableSrc()
1 == srccontent will remain present on future calls toLZ4F_compress(); skip copyingsrccontent withintmpbuffer
-
reserved
public java.nio.IntBuffer reserved()
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index)
- Returns:
- the value at the specified index of the
reservedfield.
-
stableSrc
public LZ4FCompressOptions stableSrc(int value)
Sets the specified value to thestableSrc()field.
-
reserved
public LZ4FCompressOptions reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public LZ4FCompressOptions reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
set
public LZ4FCompressOptions set(int stableSrc, java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
-
set
public LZ4FCompressOptions set(LZ4FCompressOptions src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static LZ4FCompressOptions malloc()
Returns a newLZ4FCompressOptionsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LZ4FCompressOptions calloc()
Returns a newLZ4FCompressOptionsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LZ4FCompressOptions create()
Returns a newLZ4FCompressOptionsinstance allocated withBufferUtils.
-
create
public static LZ4FCompressOptions create(long address)
Returns a newLZ4FCompressOptionsinstance for the specified memory address.
-
createSafe
@Nullable public static LZ4FCompressOptions createSafe(long address)
-
malloc
public static LZ4FCompressOptions.Buffer malloc(int capacity)
Returns a newLZ4FCompressOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LZ4FCompressOptions.Buffer calloc(int capacity)
Returns a newLZ4FCompressOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LZ4FCompressOptions.Buffer create(int capacity)
Returns a newLZ4FCompressOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LZ4FCompressOptions.Buffer create(long address, int capacity)
Create aLZ4FCompressOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LZ4FCompressOptions.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static LZ4FCompressOptions mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LZ4FCompressOptions callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LZ4FCompressOptions mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LZ4FCompressOptions callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LZ4FCompressOptions.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static LZ4FCompressOptions.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static LZ4FCompressOptions.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 LZ4FCompressOptions.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static LZ4FCompressOptions malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static LZ4FCompressOptions calloc(org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FCompressOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static LZ4FCompressOptions.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static LZ4FCompressOptions.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLZ4FCompressOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nstableSrc
public static int nstableSrc(long struct)
Unsafe version ofstableSrc().
-
nreserved
public static java.nio.IntBuffer nreserved(long struct)
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
public static void nreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.
-
nreserved
public static void nreserved(long struct, int index, int value)Unsafe version ofreserved.
-
-