Package org.lwjgl.util.zstd
Class ZDICTParams
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct ZDICT_params_t {
int compressionLevel;
unsigned notificationLevel;
unsigned dictID;
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionZDICTParams
(ByteBuffer container) Creates aZDICTParams
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZDICTParams
calloc()
Returns a newZDICTParams
instance allocated withmemCalloc
.static ZDICTParams.Buffer
calloc
(int capacity) Returns a newZDICTParams.Buffer
instance allocated withmemCalloc
.static ZDICTParams.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newZDICTParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZDICTParams
calloc
(MemoryStack stack) Returns a newZDICTParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZDICTParams
Deprecated.static ZDICTParams.Buffer
callocStack
(int capacity) Deprecated.static ZDICTParams.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static ZDICTParams
callocStack
(MemoryStack stack) Deprecated.int
compressionLevel
(int value) Sets the specified value to thecompressionLevel
field.static ZDICTParams
create()
Returns a newZDICTParams
instance allocated withBufferUtils
.static ZDICTParams.Buffer
create
(int capacity) Returns a newZDICTParams.Buffer
instance allocated withBufferUtils
.static ZDICTParams
create
(long address) Returns a newZDICTParams
instance for the specified memory address.static ZDICTParams.Buffer
create
(long address, int capacity) Create aZDICTParams.Buffer
instance at the specified memory.static @Nullable ZDICTParams
createSafe
(long address) static @Nullable ZDICTParams.Buffer
createSafe
(long address, int capacity) int
dictID()
dictID
(int value) Sets the specified value to thedictID
field.static ZDICTParams
malloc()
Returns a newZDICTParams
instance allocated withmemAlloc
.static ZDICTParams.Buffer
malloc
(int capacity) Returns a newZDICTParams.Buffer
instance allocated withmemAlloc
.static ZDICTParams.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newZDICTParams.Buffer
instance allocated on the specifiedMemoryStack
.static ZDICTParams
malloc
(MemoryStack stack) Returns a newZDICTParams
instance allocated on the specifiedMemoryStack
.static ZDICTParams
Deprecated.static ZDICTParams.Buffer
mallocStack
(int capacity) Deprecated.static ZDICTParams.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static ZDICTParams
mallocStack
(MemoryStack stack) Deprecated.static int
ncompressionLevel
(long struct) Unsafe version ofcompressionLevel()
.static void
ncompressionLevel
(long struct, int value) Unsafe version ofcompressionLevel
.static int
ndictID
(long struct) Unsafe version ofdictID()
.static void
ndictID
(long struct, int value) Unsafe version ofdictID
.static int
nnotificationLevel
(long struct) Unsafe version ofnotificationLevel()
.static void
nnotificationLevel
(long struct, int value) Unsafe version ofnotificationLevel
.int
notificationLevel
(int value) Sets the specified value to thenotificationLevel
field.set
(int compressionLevel, int notificationLevel, int dictID) Initializes this struct with the specified values.set
(ZDICTParams src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
COMPRESSIONLEVEL
public static final int COMPRESSIONLEVELThe struct member offsets. -
NOTIFICATIONLEVEL
public static final int NOTIFICATIONLEVELThe struct member offsets. -
DICTID
public static final int DICTIDThe struct member offsets.
-
-
Constructor Details
-
ZDICTParams
Creates aZDICTParams
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<ZDICTParams>
-
compressionLevel
public int compressionLevel()- Returns:
- the value of the
compressionLevel
field.
-
notificationLevel
public int notificationLevel()- Returns:
- the value of the
notificationLevel
field.
-
dictID
public int dictID()- Returns:
- the value of the
dictID
field.
-
compressionLevel
Sets the specified value to thecompressionLevel
field. -
notificationLevel
Sets the specified value to thenotificationLevel
field. -
dictID
Sets the specified value to thedictID
field. -
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 newZDICTParams
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newZDICTParams
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newZDICTParams
instance allocated withBufferUtils
. -
create
Returns a newZDICTParams
instance for the specified memory address. -
createSafe
-
malloc
Returns a newZDICTParams.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newZDICTParams.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newZDICTParams.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aZDICTParams.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 newZDICTParams
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newZDICTParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newZDICTParams.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newZDICTParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncompressionLevel
public static int ncompressionLevel(long struct) Unsafe version ofcompressionLevel()
. -
nnotificationLevel
public static int nnotificationLevel(long struct) Unsafe version ofnotificationLevel()
. -
ndictID
public static int ndictID(long struct) Unsafe version ofdictID()
. -
ncompressionLevel
public static void ncompressionLevel(long struct, int value) Unsafe version ofcompressionLevel
. -
nnotificationLevel
public static void nnotificationLevel(long struct, int value) Unsafe version ofnotificationLevel
. -
ndictID
public static void ndictID(long struct, int value) Unsafe version ofdictID
.
-