public class ZSTDFrameParameters
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
contentSizeFlag – 1: content size will be in frame header (when known)checksumFlag – 1: generate a 32-bits checksum using XXH64 algorithm at end of frame, for error detectionnoDictIDFlag – 1: no dictID will be saved into frame header (dictID is only useful for dictionary compression)
struct ZSTD_frameParameters {
int contentSizeFlag;
int checksumFlag;
int noDictIDFlag;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDFrameParameters.Buffer
An array of
ZSTDFrameParameters structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CHECKSUMFLAG
The struct member offsets.
|
static int |
CONTENTSIZEFLAG
The struct member offsets.
|
static int |
NODICTIDFLAG
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
ZSTDFrameParameters(java.nio.ByteBuffer container)
Creates a
ZSTDFrameParameters instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDFrameParameters |
calloc()
Returns a new
ZSTDFrameParameters instance allocated with memCalloc. |
static ZSTDFrameParameters.Buffer |
calloc(int capacity)
Returns a new
ZSTDFrameParameters.Buffer instance allocated with memCalloc. |
static ZSTDFrameParameters |
callocStack()
Returns a new
ZSTDFrameParameters instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDFrameParameters.Buffer |
callocStack(int capacity)
Returns a new
ZSTDFrameParameters.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDFrameParameters.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameParameters.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDFrameParameters |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameParameters instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
checksumFlag()
Returns the value of the
checksumFlag field. |
ZSTDFrameParameters |
checksumFlag(int value)
Sets the specified value to the
checksumFlag field. |
int |
contentSizeFlag()
Returns the value of the
contentSizeFlag field. |
ZSTDFrameParameters |
contentSizeFlag(int value)
Sets the specified value to the
contentSizeFlag field. |
static ZSTDFrameParameters |
create()
Returns a new
ZSTDFrameParameters instance allocated with BufferUtils. |
static ZSTDFrameParameters.Buffer |
create(int capacity)
Returns a new
ZSTDFrameParameters.Buffer instance allocated with BufferUtils. |
static ZSTDFrameParameters |
create(long address)
Returns a new
ZSTDFrameParameters instance for the specified memory address. |
static ZSTDFrameParameters.Buffer |
create(long address,
int capacity)
Create a
ZSTDFrameParameters.Buffer instance at the specified memory. |
static ZSTDFrameParameters |
createSafe(long address)
|
static ZSTDFrameParameters.Buffer |
createSafe(long address,
int capacity)
|
static ZSTDFrameParameters |
malloc()
Returns a new
ZSTDFrameParameters instance allocated with memAlloc. |
static ZSTDFrameParameters.Buffer |
malloc(int capacity)
Returns a new
ZSTDFrameParameters.Buffer instance allocated with memAlloc. |
static ZSTDFrameParameters |
mallocStack()
Returns a new
ZSTDFrameParameters instance allocated on the thread-local MemoryStack. |
static ZSTDFrameParameters.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDFrameParameters.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDFrameParameters.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameParameters.Buffer instance allocated on the specified MemoryStack. |
static ZSTDFrameParameters |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameParameters instance allocated on the specified MemoryStack. |
static int |
nchecksumFlag(long struct)
Unsafe version of
checksumFlag(). |
static void |
nchecksumFlag(long struct,
int value)
Unsafe version of
checksumFlag. |
static int |
ncontentSizeFlag(long struct)
Unsafe version of
contentSizeFlag(). |
static void |
ncontentSizeFlag(long struct,
int value)
Unsafe version of
contentSizeFlag. |
static int |
nnoDictIDFlag(long struct)
Unsafe version of
noDictIDFlag(). |
static void |
nnoDictIDFlag(long struct,
int value)
Unsafe version of
noDictIDFlag. |
int |
noDictIDFlag()
Returns the value of the
noDictIDFlag field. |
ZSTDFrameParameters |
noDictIDFlag(int value)
Sets the specified value to the
noDictIDFlag field. |
ZSTDFrameParameters |
set(int contentSizeFlag,
int checksumFlag,
int noDictIDFlag)
Initializes this struct with the specified values.
|
ZSTDFrameParameters |
set(ZSTDFrameParameters src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CONTENTSIZEFLAG
public static final int CHECKSUMFLAG
public static final int NODICTIDFLAG
public ZSTDFrameParameters(java.nio.ByteBuffer container)
ZSTDFrameParameters 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int contentSizeFlag()
contentSizeFlag field.public int checksumFlag()
checksumFlag field.public int noDictIDFlag()
noDictIDFlag field.public ZSTDFrameParameters contentSizeFlag(int value)
contentSizeFlag field.public ZSTDFrameParameters checksumFlag(int value)
checksumFlag field.public ZSTDFrameParameters noDictIDFlag(int value)
noDictIDFlag field.public ZSTDFrameParameters set(int contentSizeFlag, int checksumFlag, int noDictIDFlag)
public ZSTDFrameParameters set(ZSTDFrameParameters src)
src - the source structpublic static ZSTDFrameParameters malloc()
ZSTDFrameParameters instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDFrameParameters calloc()
ZSTDFrameParameters instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDFrameParameters create()
ZSTDFrameParameters instance allocated with BufferUtils.public static ZSTDFrameParameters create(long address)
ZSTDFrameParameters instance for the specified memory address.@Nullable public static ZSTDFrameParameters createSafe(long address)
public static ZSTDFrameParameters.Buffer malloc(int capacity)
ZSTDFrameParameters.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDFrameParameters.Buffer calloc(int capacity)
ZSTDFrameParameters.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDFrameParameters.Buffer create(int capacity)
ZSTDFrameParameters.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDFrameParameters.Buffer create(long address, int capacity)
ZSTDFrameParameters.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDFrameParameters.Buffer createSafe(long address, int capacity)
public static ZSTDFrameParameters mallocStack()
ZSTDFrameParameters instance allocated on the thread-local MemoryStack.public static ZSTDFrameParameters callocStack()
ZSTDFrameParameters instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDFrameParameters mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDFrameParameters instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDFrameParameters callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDFrameParameters instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDFrameParameters.Buffer mallocStack(int capacity)
ZSTDFrameParameters.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDFrameParameters.Buffer callocStack(int capacity)
ZSTDFrameParameters.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDFrameParameters.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDFrameParameters.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDFrameParameters.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDFrameParameters.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ncontentSizeFlag(long struct)
contentSizeFlag().public static int nchecksumFlag(long struct)
checksumFlag().public static int nnoDictIDFlag(long struct)
noDictIDFlag().public static void ncontentSizeFlag(long struct,
int value)
contentSizeFlag.public static void nchecksumFlag(long struct,
int value)
checksumFlag.public static void nnoDictIDFlag(long struct,
int value)
noDictIDFlag.Copyright LWJGL. All Rights Reserved. License terms.