Package org.lwjgl.util.zstd
Class ZSTDCompressionParameters
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class ZSTDCompressionParameters
extends Struct<ZSTDCompressionParameters>
implements NativeResource
struct ZSTD_compressionParameters {
unsigned int windowLog;
unsigned int chainLog;
unsigned int hashLog;
unsigned int searchLog;
unsigned int minMatch;
unsigned int targetLength;
ZSTD_strategy strategy;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionZSTDCompressionParameters
(ByteBuffer container) Creates aZSTDCompressionParameters
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDCompressionParameters
calloc()
Returns a newZSTDCompressionParameters
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newZSTDCompressionParameters.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newZSTDCompressionParameters.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZSTDCompressionParameters
calloc
(MemoryStack stack) Returns a newZSTDCompressionParameters
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZSTDCompressionParameters
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static ZSTDCompressionParameters
callocStack
(MemoryStack stack) Deprecated.int
chainLog()
chainLog
(int value) Sets the specified value to thechainLog
field.static ZSTDCompressionParameters
create()
Returns a newZSTDCompressionParameters
instance allocated withBufferUtils
.create
(int capacity) Returns a newZSTDCompressionParameters.Buffer
instance allocated withBufferUtils
.static ZSTDCompressionParameters
create
(long address) Returns a newZSTDCompressionParameters
instance for the specified memory address.create
(long address, int capacity) Create aZSTDCompressionParameters.Buffer
instance at the specified memory.static @Nullable ZSTDCompressionParameters
createSafe
(long address) static @Nullable ZSTDCompressionParameters.Buffer
createSafe
(long address, int capacity) int
hashLog()
hashLog
(int value) Sets the specified value to thehashLog
field.static ZSTDCompressionParameters
malloc()
Returns a newZSTDCompressionParameters
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newZSTDCompressionParameters.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newZSTDCompressionParameters.Buffer
instance allocated on the specifiedMemoryStack
.static ZSTDCompressionParameters
malloc
(MemoryStack stack) Returns a newZSTDCompressionParameters
instance allocated on the specifiedMemoryStack
.static ZSTDCompressionParameters
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static ZSTDCompressionParameters
mallocStack
(MemoryStack stack) Deprecated.int
minMatch()
minMatch
(int value) Sets the specified value to theminMatch
field.static int
nchainLog
(long struct) Unsafe version ofchainLog()
.static void
nchainLog
(long struct, int value) Unsafe version ofchainLog
.static int
nhashLog
(long struct) Unsafe version ofhashLog()
.static void
nhashLog
(long struct, int value) Unsafe version ofhashLog
.static int
nminMatch
(long struct) Unsafe version ofminMatch()
.static void
nminMatch
(long struct, int value) Unsafe version ofminMatch
.static int
nsearchLog
(long struct) Unsafe version ofsearchLog()
.static void
nsearchLog
(long struct, int value) Unsafe version ofsearchLog
.static int
nstrategy
(long struct) Unsafe version ofstrategy()
.static void
nstrategy
(long struct, int value) Unsafe version ofstrategy
.static int
ntargetLength
(long struct) Unsafe version oftargetLength()
.static void
ntargetLength
(long struct, int value) Unsafe version oftargetLength
.static int
nwindowLog
(long struct) Unsafe version ofwindowLog()
.static void
nwindowLog
(long struct, int value) Unsafe version ofwindowLog
.int
searchLog
(int value) Sets the specified value to thesearchLog
field.set
(int windowLog, int chainLog, int hashLog, int searchLog, int minMatch, int targetLength, int strategy) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
strategy()
strategy
(int value) Sets the specified value to thestrategy
field.int
targetLength
(int value) Sets the specified value to thetargetLength
field.int
windowLog
(int value) Sets the specified value to thewindowLog
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
WINDOWLOG
public static final int WINDOWLOGThe struct member offsets. -
CHAINLOG
public static final int CHAINLOGThe struct member offsets. -
HASHLOG
public static final int HASHLOGThe struct member offsets. -
SEARCHLOG
public static final int SEARCHLOGThe struct member offsets. -
MINMATCH
public static final int MINMATCHThe struct member offsets. -
TARGETLENGTH
public static final int TARGETLENGTHThe struct member offsets. -
STRATEGY
public static final int STRATEGYThe struct member offsets.
-
-
Constructor Details
-
ZSTDCompressionParameters
Creates aZSTDCompressionParameters
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ZSTDCompressionParameters>
-
windowLog
public int windowLog()- Returns:
- the value of the
windowLog
field.
-
chainLog
public int chainLog()- Returns:
- the value of the
chainLog
field.
-
hashLog
public int hashLog()- Returns:
- the value of the
hashLog
field.
-
searchLog
public int searchLog()- Returns:
- the value of the
searchLog
field.
-
minMatch
public int minMatch()- Returns:
- the value of the
minMatch
field.
-
targetLength
public int targetLength()- Returns:
- the value of the
targetLength
field.
-
strategy
public int strategy()- Returns:
- the value of the
strategy
field.
-
windowLog
Sets the specified value to thewindowLog
field. -
chainLog
Sets the specified value to thechainLog
field. -
hashLog
Sets the specified value to thehashLog
field. -
searchLog
Sets the specified value to thesearchLog
field. -
minMatch
Sets the specified value to theminMatch
field. -
targetLength
Sets the specified value to thetargetLength
field. -
strategy
Sets the specified value to thestrategy
field. -
set
public ZSTDCompressionParameters set(int windowLog, int chainLog, int hashLog, int searchLog, int minMatch, int targetLength, int strategy) 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 newZSTDCompressionParameters
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newZSTDCompressionParameters
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newZSTDCompressionParameters
instance allocated withBufferUtils
. -
create
Returns a newZSTDCompressionParameters
instance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDCompressionParameters.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newZSTDCompressionParameters.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newZSTDCompressionParameters.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aZSTDCompressionParameters.Buffer
instance 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 ZSTDCompressionParameters.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static ZSTDCompressionParameters.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newZSTDCompressionParameters
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newZSTDCompressionParameters
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newZSTDCompressionParameters.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newZSTDCompressionParameters.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nwindowLog
public static int nwindowLog(long struct) Unsafe version ofwindowLog()
. -
nchainLog
public static int nchainLog(long struct) Unsafe version ofchainLog()
. -
nhashLog
public static int nhashLog(long struct) Unsafe version ofhashLog()
. -
nsearchLog
public static int nsearchLog(long struct) Unsafe version ofsearchLog()
. -
nminMatch
public static int nminMatch(long struct) Unsafe version ofminMatch()
. -
ntargetLength
public static int ntargetLength(long struct) Unsafe version oftargetLength()
. -
nstrategy
public static int nstrategy(long struct) Unsafe version ofstrategy()
. -
nwindowLog
public static void nwindowLog(long struct, int value) Unsafe version ofwindowLog
. -
nchainLog
public static void nchainLog(long struct, int value) Unsafe version ofchainLog
. -
nhashLog
public static void nhashLog(long struct, int value) Unsafe version ofhashLog
. -
nsearchLog
public static void nsearchLog(long struct, int value) Unsafe version ofsearchLog
. -
nminMatch
public static void nminMatch(long struct, int value) Unsafe version ofminMatch
. -
ntargetLength
public static void ntargetLength(long struct, int value) Unsafe version oftargetLength
. -
nstrategy
public static void nstrategy(long struct, int value) Unsafe version ofstrategy
.
-