Top Description Inners Fields Constructors Methods
org.lwjgl.util.zstd

public Class ZDICTParams

extends Struct<ZDICTParams>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct ZDICT_params_t
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct ZDICT_params_t {
    int compressionLevel;
    unsigned notificationLevel;
    unsigned dictID;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ZDICTParams.Buffer

An array of ZDICTParams structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COMPRESSIONLEVEL

The struct member offsets.

public static final int
DICTID

The struct member offsets.

public static final int
NOTIFICATIONLEVEL

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
ZDICTParams(long address, ByteBuffer container)

public
ZDICTParams(ByteBuffer container)

Creates a ZDICTParams instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static ZDICTParams
calloc()

Returns a new ZDICTParams instance allocated with memCalloc.

public static ZDICTParams.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new ZDICTParams.Buffer instance allocated with memCalloc.

public static ZDICTParams
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ZDICTParams instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ZDICTParams.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ZDICTParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ZDICTParams
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static ZDICTParams
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static ZDICTParams.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static ZDICTParams.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
compressionLevel()

optimize for a specific zstd compression level; 0 means default

public ZDICTParams
compressionLevel(int value)

Sets the specified value to the compressionLevel field.

protected ZDICTParams
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static ZDICTParams
create()

Returns a new ZDICTParams instance allocated with BufferUtils.

public static ZDICTParams
create(long address)

Returns a new ZDICTParams instance for the specified memory address.

public static ZDICTParams.Buffer
create(int
the buffer capacity
capacity
)

Returns a new ZDICTParams.Buffer instance allocated with BufferUtils.

public static ZDICTParams.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a ZDICTParams.Buffer instance at the specified memory.

public static ZDICTParams
createSafe(long address)

Like create, but returns null if address is NULL.

public static ZDICTParams.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
dictID()

force dictID value; 0 means auto mode (32-bits random value).

public ZDICTParams
dictID(int value)

Sets the specified value to the dictID field.

public static ZDICTParams
malloc()

Returns a new ZDICTParams instance allocated with memAlloc.

public static ZDICTParams.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new ZDICTParams.Buffer instance allocated with memAlloc.

public static ZDICTParams
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ZDICTParams instance allocated on the specified MemoryStack.

public static ZDICTParams.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ZDICTParams.Buffer instance allocated on the specified MemoryStack.

public static ZDICTParams
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static ZDICTParams
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static ZDICTParams.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static ZDICTParams.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
ncompressionLevel(long struct)

Unsafe version of compressionLevel.

public static void
ncompressionLevel(long struct, int value)

Unsafe version of compressionLevel.

public static int
ndictID(long struct)

Unsafe version of dictID.

public static void
ndictID(long struct, int value)

Unsafe version of dictID.

public static int
nnotificationLevel(long struct)

Unsafe version of notificationLevel.

public static void
nnotificationLevel(long struct, int value)

Unsafe version of notificationLevel.

public int
notificationLevel()

write log to stderr; 0 = none (default); 1 = errors; 2 = progression; 3 = details; 4 = debug;

public ZDICTParams
notificationLevel(int value)

Sets the specified value to the notificationLevel field.

public ZDICTParams
set(int compressionLevel, int notificationLevel, int dictID)

Initializes this struct with the specified values.

public ZDICTParams

Returns:

this struct
set
(ZDICTParams
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COMPRESSIONLEVELback to summary
public static final int COMPRESSIONLEVEL

The struct member offsets.

DICTIDback to summary
public static final int DICTID

The struct member offsets.

NOTIFICATIONLEVELback to summary
public static final int NOTIFICATIONLEVEL

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

ZDICTParamsback to summary
protected ZDICTParams(long address, ByteBuffer container)
ZDICTParamsback to summary
public ZDICTParams(ByteBuffer container)

Creates a ZDICTParams instance at the current position of the specified ByteBuffer 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 Detail

callocback to summary
public static ZDICTParams calloc()

Returns a new ZDICTParams instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static ZDICTParams.Buffer calloc(int capacity)

Returns a new ZDICTParams.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static ZDICTParams calloc(MemoryStack stack)

Returns a new ZDICTParams instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static ZDICTParams.Buffer calloc(int capacity, MemoryStack stack)

Returns a new ZDICTParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static ZDICTParams callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ZDICTParams callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ZDICTParams.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ZDICTParams.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
compressionLevelback to summary
public int compressionLevel()

optimize for a specific zstd compression level; 0 means default

compressionLevelback to summary
public ZDICTParams compressionLevel(int value)

Sets the specified value to the compressionLevel field.

createback to summary
protected ZDICTParams create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static ZDICTParams create()

Returns a new ZDICTParams instance allocated with BufferUtils.

createback to summary
public static ZDICTParams create(long address)

Returns a new ZDICTParams instance for the specified memory address.

createback to summary
public static ZDICTParams.Buffer create(int capacity)

Returns a new ZDICTParams.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static ZDICTParams.Buffer create(long address, int capacity)

Create a ZDICTParams.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static ZDICTParams createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static ZDICTParams.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
dictIDback to summary
public int dictID()

force dictID value; 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)
Annotations
@NativeType:unsigned
dictIDback to summary
public ZDICTParams dictID(int value)

Sets the specified value to the dictID field.

mallocback to summary
public static ZDICTParams malloc()

Returns a new ZDICTParams instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static ZDICTParams.Buffer malloc(int capacity)

Returns a new ZDICTParams.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static ZDICTParams malloc(MemoryStack stack)

Returns a new ZDICTParams instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static ZDICTParams.Buffer malloc(int capacity, MemoryStack stack)

Returns a new ZDICTParams.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static ZDICTParams mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ZDICTParams mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ZDICTParams.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ZDICTParams.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
ncompressionLevelback to summary
public static int ncompressionLevel(long struct)

Unsafe version of compressionLevel.

ncompressionLevelback to summary
public static void ncompressionLevel(long struct, int value)

Unsafe version of compressionLevel.

ndictIDback to summary
public static int ndictID(long struct)

Unsafe version of dictID.

ndictIDback to summary
public static void ndictID(long struct, int value)

Unsafe version of dictID.

nnotificationLevelback to summary
public static int nnotificationLevel(long struct)

Unsafe version of notificationLevel.

nnotificationLevelback to summary
public static void nnotificationLevel(long struct, int value)

Unsafe version of notificationLevel.

notificationLevelback to summary
public int notificationLevel()

write log to stderr; 0 = none (default); 1 = errors; 2 = progression; 3 = details; 4 = debug;

Annotations
@NativeType:unsigned
notificationLevelback to summary
public ZDICTParams notificationLevel(int value)

Sets the specified value to the notificationLevel field.

setback to summary
public ZDICTParams set(int compressionLevel, int notificationLevel, int dictID)

Initializes this struct with the specified values.

setback to summary
public ZDICTParams set(ZDICTParams src)

Copies the specified struct data to this struct.

Parameters
src:ZDICTParams

the source struct

Returns:ZDICTParams

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.util.zstd back to summary

public Class ZDICTParams.Buffer

extends StructBuffer<ZDICTParams, ZDICTParams.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of ZDICTParams structs.

Field Summary

Modifier and TypeField and Description
private static final ZDICTParams

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new ZDICTParams.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the ZDICTParams#compressionLevel field.
compressionLevel
()

public ZDICTParams.Buffer
compressionLevel(int value)

Sets the specified value to the ZDICTParams#compressionLevel field.

public int

Returns:

the value of the ZDICTParams#dictID field.
dictID
()

public ZDICTParams.Buffer
dictID(int value)

Sets the specified value to the ZDICTParams#dictID field.

protected ZDICTParams
public int

Returns:

the value of the ZDICTParams#notificationLevel field.
notificationLevel
()

public ZDICTParams.Buffer
notificationLevel(int value)

Sets the specified value to the ZDICTParams#notificationLevel field.

protected ZDICTParams.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final ZDICTParams ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new ZDICTParams.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ZDICTParams#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

compressionLevelback to summary
public int compressionLevel()
Returns:int

the value of the ZDICTParams#compressionLevel field.

compressionLevelback to summary
public ZDICTParams.Buffer compressionLevel(int value)

Sets the specified value to the ZDICTParams#compressionLevel field.

dictIDback to summary
public int dictID()
Returns:int

the value of the ZDICTParams#dictID field.

Annotations
@NativeType:unsigned
dictIDback to summary
public ZDICTParams.Buffer dictID(int value)

Sets the specified value to the ZDICTParams#dictID field.

getElementFactoryback to summary
protected ZDICTParams getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
notificationLevelback to summary
public int notificationLevel()
Returns:int

the value of the ZDICTParams#notificationLevel field.

Annotations
@NativeType:unsigned
notificationLevelback to summary
public ZDICTParams.Buffer notificationLevel(int value)

Sets the specified value to the ZDICTParams#notificationLevel field.

selfback to summary
protected ZDICTParams.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override