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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 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 aZDICTParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZDICTParamscalloc()Returns a newZDICTParamsinstance allocated withmemCalloc.static ZDICTParams.Buffercalloc(int capacity) Returns a newZDICTParams.Bufferinstance allocated withmemCalloc.static ZDICTParams.Buffercalloc(int capacity, MemoryStack stack) Returns a newZDICTParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZDICTParamscalloc(MemoryStack stack) Returns a newZDICTParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcompressionLevel(int value) Sets the specified value to thecompressionLevelfield.static ZDICTParamscreate()Returns a newZDICTParamsinstance allocated withBufferUtils.static ZDICTParams.Buffercreate(int capacity) Returns a newZDICTParams.Bufferinstance allocated withBufferUtils.static ZDICTParamscreate(long address) Returns a newZDICTParamsinstance for the specified memory address.static ZDICTParams.Buffercreate(long address, int capacity) Create aZDICTParams.Bufferinstance at the specified memory.static @Nullable ZDICTParamscreateSafe(long address) static @Nullable ZDICTParams.BuffercreateSafe(long address, int capacity) intdictID()dictID(int value) Sets the specified value to thedictIDfield.static ZDICTParamsmalloc()Returns a newZDICTParamsinstance allocated withmemAlloc.static ZDICTParams.Buffermalloc(int capacity) Returns a newZDICTParams.Bufferinstance allocated withmemAlloc.static ZDICTParams.Buffermalloc(int capacity, MemoryStack stack) Returns a newZDICTParams.Bufferinstance allocated on the specifiedMemoryStack.static ZDICTParamsmalloc(MemoryStack stack) Returns a newZDICTParamsinstance allocated on the specifiedMemoryStack.static intncompressionLevel(long struct) Unsafe version ofcompressionLevel().static voidncompressionLevel(long struct, int value) Unsafe version ofcompressionLevel.static intndictID(long struct) Unsafe version ofdictID().static voidndictID(long struct, int value) Unsafe version ofdictID.static intnnotificationLevel(long struct) Unsafe version ofnotificationLevel().static voidnnotificationLevel(long struct, int value) Unsafe version ofnotificationLevel.intnotificationLevel(int value) Sets the specified value to thenotificationLevelfield.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.intsizeof()Returnssizeof(struct).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. -
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 aZDICTParamsinstance 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<ZDICTParams>
-
compressionLevel
public int compressionLevel()- Returns:
- the value of the
compressionLevelfield.
-
notificationLevel
public int notificationLevel()- Returns:
- the value of the
notificationLevelfield.
-
dictID
public int dictID()- Returns:
- the value of the
dictIDfield.
-
compressionLevel
Sets the specified value to thecompressionLevelfield. -
notificationLevel
Sets the specified value to thenotificationLevelfield. -
dictID
Sets the specified value to thedictIDfield. -
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 newZDICTParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZDICTParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZDICTParamsinstance allocated withBufferUtils. -
create
Returns a newZDICTParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newZDICTParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZDICTParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZDICTParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZDICTParams.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newZDICTParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZDICTParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZDICTParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZDICTParams.Bufferinstance allocated on the specifiedMemoryStackand 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.
-