Package org.lwjgl.util.zstd
Class ZDICTCoverParams
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct ZDICT_cover_params_t {
unsigned k;
unsigned d;
unsigned steps;
unsigned nbThreads;
double splitPoint;
{@link ZDICTParams ZDICT_params_t} zParams;
}
-
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 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
ConstructorsConstructorDescriptionZDICTCoverParams
(ByteBuffer container) Creates aZDICTCoverParams
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZDICTCoverParams
calloc()
Returns a newZDICTCoverParams
instance allocated withmemCalloc
.static ZDICTCoverParams.Buffer
calloc
(int capacity) Returns a newZDICTCoverParams.Buffer
instance allocated withmemCalloc
.static ZDICTCoverParams.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newZDICTCoverParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZDICTCoverParams
calloc
(MemoryStack stack) Returns a newZDICTCoverParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZDICTCoverParams
Deprecated.static ZDICTCoverParams.Buffer
callocStack
(int capacity) Deprecated.static ZDICTCoverParams.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static ZDICTCoverParams
callocStack
(MemoryStack stack) Deprecated.static ZDICTCoverParams
create()
Returns a newZDICTCoverParams
instance allocated withBufferUtils
.static ZDICTCoverParams.Buffer
create
(int capacity) Returns a newZDICTCoverParams.Buffer
instance allocated withBufferUtils
.static ZDICTCoverParams
create
(long address) Returns a newZDICTCoverParams
instance for the specified memory address.static ZDICTCoverParams.Buffer
create
(long address, int capacity) Create aZDICTCoverParams.Buffer
instance at the specified memory.static @Nullable ZDICTCoverParams
createSafe
(long address) static @Nullable ZDICTCoverParams.Buffer
createSafe
(long address, int capacity) int
d()
d
(int value) Sets the specified value to thed
field.int
k()
k
(int value) Sets the specified value to thek
field.static ZDICTCoverParams
malloc()
Returns a newZDICTCoverParams
instance allocated withmemAlloc
.static ZDICTCoverParams.Buffer
malloc
(int capacity) Returns a newZDICTCoverParams.Buffer
instance allocated withmemAlloc
.static ZDICTCoverParams.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newZDICTCoverParams.Buffer
instance allocated on the specifiedMemoryStack
.static ZDICTCoverParams
malloc
(MemoryStack stack) Returns a newZDICTCoverParams
instance allocated on the specifiedMemoryStack
.static ZDICTCoverParams
Deprecated.static ZDICTCoverParams.Buffer
mallocStack
(int capacity) Deprecated.static ZDICTCoverParams.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static ZDICTCoverParams
mallocStack
(MemoryStack stack) Deprecated.int
nbThreads
(int value) Sets the specified value to thenbThreads
field.static int
nd
(long struct) Unsafe version ofd()
.static void
nd
(long struct, int value) Unsafe version ofd
.static int
nk
(long struct) Unsafe version ofk()
.static void
nk
(long struct, int value) Unsafe version ofk
.static int
nnbThreads
(long struct) Unsafe version ofnbThreads()
.static void
nnbThreads
(long struct, int value) Unsafe version ofnbThreads
.static double
nsplitPoint
(long struct) Unsafe version ofsplitPoint()
.static void
nsplitPoint
(long struct, double value) Unsafe version ofsplitPoint
.static int
nsteps
(long struct) Unsafe version ofsteps()
.static void
nsteps
(long struct, int value) Unsafe version ofsteps
.static ZDICTParams
nzParams
(long struct) Unsafe version ofzParams()
.static void
nzParams
(long struct, ZDICTParams value) Unsafe version ofzParams
.set
(int k, int d, int steps, int nbThreads, double splitPoint, ZDICTParams zParams) Initializes this struct with the specified values.set
(ZDICTCoverParams src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.double
splitPoint
(double value) Sets the specified value to thesplitPoint
field.int
steps()
steps
(int value) Sets the specified value to thesteps
field.zParams()
zParams
(Consumer<ZDICTParams> consumer) Passes thezParams
field to the specifiedConsumer
.zParams
(ZDICTParams value) Copies the specifiedZDICTParams
to thezParams
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. -
K
public static final int KThe struct member offsets. -
D
public static final int DThe struct member offsets. -
STEPS
public static final int STEPSThe struct member offsets. -
NBTHREADS
public static final int NBTHREADSThe struct member offsets. -
SPLITPOINT
public static final int SPLITPOINTThe struct member offsets. -
ZPARAMS
public static final int ZPARAMSThe struct member offsets.
-
-
Constructor Details
-
ZDICTCoverParams
Creates aZDICTCoverParams
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<ZDICTCoverParams>
-
k
public int k()- Returns:
- the value of the
k
field.
-
d
public int d()- Returns:
- the value of the
d
field.
-
steps
public int steps()- Returns:
- the value of the
steps
field.
-
nbThreads
public int nbThreads()- Returns:
- the value of the
nbThreads
field.
-
splitPoint
public double splitPoint()- Returns:
- the value of the
splitPoint
field.
-
zParams
- Returns:
- a
ZDICTParams
view of thezParams
field.
-
k
Sets the specified value to thek
field. -
d
Sets the specified value to thed
field. -
steps
Sets the specified value to thesteps
field. -
nbThreads
Sets the specified value to thenbThreads
field. -
splitPoint
Sets the specified value to thesplitPoint
field. -
zParams
Copies the specifiedZDICTParams
to thezParams
field. -
zParams
Passes thezParams
field to the specifiedConsumer
. -
set
public ZDICTCoverParams set(int k, int d, int steps, int nbThreads, double splitPoint, ZDICTParams zParams) 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 newZDICTCoverParams
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newZDICTCoverParams
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newZDICTCoverParams
instance allocated withBufferUtils
. -
create
Returns a newZDICTCoverParams
instance for the specified memory address. -
createSafe
-
malloc
Returns a newZDICTCoverParams.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newZDICTCoverParams.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newZDICTCoverParams.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aZDICTCoverParams.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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newZDICTCoverParams
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newZDICTCoverParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newZDICTCoverParams.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newZDICTCoverParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nk
public static int nk(long struct) Unsafe version ofk()
. -
nd
public static int nd(long struct) Unsafe version ofd()
. -
nsteps
public static int nsteps(long struct) Unsafe version ofsteps()
. -
nnbThreads
public static int nnbThreads(long struct) Unsafe version ofnbThreads()
. -
nsplitPoint
public static double nsplitPoint(long struct) Unsafe version ofsplitPoint()
. -
nzParams
Unsafe version ofzParams()
. -
nk
public static void nk(long struct, int value) Unsafe version ofk
. -
nd
public static void nd(long struct, int value) Unsafe version ofd
. -
nsteps
public static void nsteps(long struct, int value) Unsafe version ofsteps
. -
nnbThreads
public static void nnbThreads(long struct, int value) Unsafe version ofnbThreads
. -
nsplitPoint
public static void nsplitPoint(long struct, double value) Unsafe version ofsplitPoint
. -
nzParams
Unsafe version ofzParams
.
-