Package org.lwjgl.util.zstd
Class ZDICTParams
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<ZDICTParams>
org.lwjgl.util.zstd.ZDICTParams
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZDICTParams
extends org.lwjgl.system.Struct<ZDICTParams>
implements org.lwjgl.system.NativeResource
Layout
struct ZDICT_params_t {
int compressionLevel();
unsigned notificationLevel();
unsigned dictID();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newZDICTParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZDICTParamscalloc(org.lwjgl.system.MemoryStack stack) Returns a newZDICTParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZDICTParamsDeprecated.static ZDICTParams.BuffercallocStack(int capacity) Deprecated.static ZDICTParams.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZDICTParamscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intoptimize for a specific zstd compression level; 0 means defaultcompressionLevel(int value) Sets the specified value to thecompressionLevel()field.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()forcedictIDvalue; 0 means auto mode (32-bits random value).dictID(int value) Sets the specified value to thedictID()field.static ZDICTParamsmalloc()Returns a newZDICTParamsinstance allocated withmemAlloc.static ZDICTParams.Buffermalloc(int capacity) Returns a newZDICTParams.Bufferinstance allocated withmemAlloc.static ZDICTParams.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newZDICTParams.Bufferinstance allocated on the specifiedMemoryStack.static ZDICTParamsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newZDICTParamsinstance allocated on the specifiedMemoryStack.static ZDICTParamsDeprecated.static ZDICTParams.BuffermallocStack(int capacity) Deprecated.static ZDICTParams.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZDICTParamsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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.intwrite log tostderr; 0 = none (default); 1 = errors; 2 = progression; 3 = details; 4 = debug;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.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<ZDICTParams>
-
compressionLevel
public int compressionLevel()optimize for a specific zstd compression level; 0 means default -
notificationLevel
public int notificationLevel()write log tostderr; 0 = none (default); 1 = errors; 2 = progression; 3 = details; 4 = debug; -
dictID
public int dictID()forcedictIDvalue; 0 means auto mode (32-bits random value).NOTE: The zstd format reserves some dictionary IDs for future use. You may use them in private settings, but be warned that they may be used by zstd in a public dictionary registry in the future. These dictionary IDs are:
- low range : ≤ 32767 - high range : ≥ (2^31) -
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 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
-
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 ZDICTParams.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static ZDICTParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
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.
-