Package org.lwjgl.util.zstd
Class ZDICTFastCoverParams
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct ZDICT_fastCover_params_t {
unsigned k;
unsigned d;
unsigned f;
unsigned steps;
unsigned nbThreads;
double splitPoint;
unsigned accel;
ZDICT_params_t zParams;
}-
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 member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.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.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
ConstructorsConstructorDescriptionZDICTFastCoverParams(ByteBuffer container) Creates aZDICTFastCoverParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintaccel()accel(int value) Sets the specified value to theaccelfield.static ZDICTFastCoverParamscalloc()Returns a newZDICTFastCoverParamsinstance allocated withmemCalloc.static ZDICTFastCoverParams.Buffercalloc(int capacity) Returns a newZDICTFastCoverParams.Bufferinstance allocated withmemCalloc.static ZDICTFastCoverParams.Buffercalloc(int capacity, MemoryStack stack) Returns a newZDICTFastCoverParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZDICTFastCoverParamscalloc(MemoryStack stack) Returns a newZDICTFastCoverParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZDICTFastCoverParamscreate()Returns a newZDICTFastCoverParamsinstance allocated withBufferUtils.static ZDICTFastCoverParams.Buffercreate(int capacity) Returns a newZDICTFastCoverParams.Bufferinstance allocated withBufferUtils.static ZDICTFastCoverParamscreate(long address) Returns a newZDICTFastCoverParamsinstance for the specified memory address.static ZDICTFastCoverParams.Buffercreate(long address, int capacity) Create aZDICTFastCoverParams.Bufferinstance at the specified memory.static @Nullable ZDICTFastCoverParamscreateSafe(long address) static @Nullable ZDICTFastCoverParams.BuffercreateSafe(long address, int capacity) intd()d(int value) Sets the specified value to thedfield.intf()f(int value) Sets the specified value to theffield.intk()k(int value) Sets the specified value to thekfield.static ZDICTFastCoverParamsmalloc()Returns a newZDICTFastCoverParamsinstance allocated withmemAlloc.static ZDICTFastCoverParams.Buffermalloc(int capacity) Returns a newZDICTFastCoverParams.Bufferinstance allocated withmemAlloc.static ZDICTFastCoverParams.Buffermalloc(int capacity, MemoryStack stack) Returns a newZDICTFastCoverParams.Bufferinstance allocated on the specifiedMemoryStack.static ZDICTFastCoverParamsmalloc(MemoryStack stack) Returns a newZDICTFastCoverParamsinstance allocated on the specifiedMemoryStack.static intnaccel(long struct) Unsafe version ofaccel().static voidnaccel(long struct, int value) Unsafe version ofaccel.intnbThreads(int value) Sets the specified value to thenbThreadsfield.static intnd(long struct) Unsafe version ofd().static voidnd(long struct, int value) Unsafe version ofd.static intnf(long struct) Unsafe version off().static voidnf(long struct, int value) Unsafe version off.static intnk(long struct) Unsafe version ofk().static voidnk(long struct, int value) Unsafe version ofk.static intnnbThreads(long struct) Unsafe version ofnbThreads().static voidnnbThreads(long struct, int value) Unsafe version ofnbThreads.static doublensplitPoint(long struct) Unsafe version ofsplitPoint().static voidnsplitPoint(long struct, double value) Unsafe version ofsplitPoint.static intnsteps(long struct) Unsafe version ofsteps().static voidnsteps(long struct, int value) Unsafe version ofsteps.static ZDICTParamsnzParams(long struct) Unsafe version ofzParams().static voidnzParams(long struct, ZDICTParams value) Unsafe version ofzParams.set(int k, int d, int f, int steps, int nbThreads, double splitPoint, int accel, ZDICTParams zParams) Initializes this struct with the specified values.set(ZDICTFastCoverParams src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).doublesplitPoint(double value) Sets the specified value to thesplitPointfield.intsteps()steps(int value) Sets the specified value to thestepsfield.zParams()zParams(Consumer<ZDICTParams> consumer) Passes thezParamsfield to the specifiedConsumer.zParams(ZDICTParams value) Copies the specifiedZDICTParamsto thezParamsfield.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. -
K
public static final int KThe struct member offsets. -
D
public static final int DThe struct member offsets. -
F
public static final int FThe 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. -
ACCEL
public static final int ACCELThe struct member offsets. -
ZPARAMS
public static final int ZPARAMSThe struct member offsets.
-
-
Constructor Details
-
ZDICTFastCoverParams
Creates aZDICTFastCoverParamsinstance 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<ZDICTFastCoverParams>
-
k
public int k()- Returns:
- the value of the
kfield.
-
d
public int d()- Returns:
- the value of the
dfield.
-
f
public int f()- Returns:
- the value of the
ffield.
-
steps
public int steps()- Returns:
- the value of the
stepsfield.
-
nbThreads
public int nbThreads()- Returns:
- the value of the
nbThreadsfield.
-
splitPoint
public double splitPoint()- Returns:
- the value of the
splitPointfield.
-
accel
public int accel()- Returns:
- the value of the
accelfield.
-
zParams
- Returns:
- a
ZDICTParamsview of thezParamsfield.
-
k
Sets the specified value to thekfield. -
d
Sets the specified value to thedfield. -
f
Sets the specified value to theffield. -
steps
Sets the specified value to thestepsfield. -
nbThreads
Sets the specified value to thenbThreadsfield. -
splitPoint
Sets the specified value to thesplitPointfield. -
accel
Sets the specified value to theaccelfield. -
zParams
Copies the specifiedZDICTParamsto thezParamsfield. -
zParams
Passes thezParamsfield to the specifiedConsumer. -
set
public ZDICTFastCoverParams set(int k, int d, int f, int steps, int nbThreads, double splitPoint, int accel, 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 newZDICTFastCoverParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZDICTFastCoverParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZDICTFastCoverParamsinstance allocated withBufferUtils. -
create
Returns a newZDICTFastCoverParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newZDICTFastCoverParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZDICTFastCoverParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZDICTFastCoverParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZDICTFastCoverParams.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newZDICTFastCoverParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZDICTFastCoverParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZDICTFastCoverParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZDICTFastCoverParams.Bufferinstance allocated on the specifiedMemoryStackand 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(). -
nf
public static int nf(long struct) Unsafe version off(). -
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(). -
naccel
public static int naccel(long struct) Unsafe version ofaccel(). -
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. -
nf
public static void nf(long struct, int value) Unsafe version off. -
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. -
naccel
public static void naccel(long struct, int value) Unsafe version ofaccel. -
nzParams
Unsafe version ofzParams.
-