Package org.lwjgl.util.zstd
Class ZSTDFrameParameters
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<ZSTDFrameParameters>
org.lwjgl.util.zstd.ZSTDFrameParameters
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDFrameParameters
extends org.lwjgl.system.Struct<ZSTDFrameParameters>
implements org.lwjgl.system.NativeResource
Layout
struct ZSTD_frameParameters {
int contentSizeFlag();
int checksumFlag();
int noDictIDFlag();
}-
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
ConstructorsConstructorDescriptionZSTDFrameParameters(ByteBuffer container) Creates aZSTDFrameParametersinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDFrameParameterscalloc()Returns a newZSTDFrameParametersinstance allocated withmemCalloc.static ZSTDFrameParameters.Buffercalloc(int capacity) Returns a newZSTDFrameParameters.Bufferinstance allocated withmemCalloc.static ZSTDFrameParameters.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameParameterscalloc(org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameParametersDeprecated.static ZSTDFrameParameters.BuffercallocStack(int capacity) Deprecated.static ZSTDFrameParameters.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZSTDFrameParameterscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.int1: generate a 32-bits checksum using XXH64 algorithm at end of frame, for error detectionchecksumFlag(int value) Sets the specified value to thechecksumFlag()field.int1: content size will be in frame header (when known)contentSizeFlag(int value) Sets the specified value to thecontentSizeFlag()field.static ZSTDFrameParameterscreate()Returns a newZSTDFrameParametersinstance allocated withBufferUtils.static ZSTDFrameParameters.Buffercreate(int capacity) Returns a newZSTDFrameParameters.Bufferinstance allocated withBufferUtils.static ZSTDFrameParameterscreate(long address) Returns a newZSTDFrameParametersinstance for the specified memory address.static ZSTDFrameParameters.Buffercreate(long address, int capacity) Create aZSTDFrameParameters.Bufferinstance at the specified memory.static @Nullable ZSTDFrameParameterscreateSafe(long address) static @Nullable ZSTDFrameParameters.BuffercreateSafe(long address, int capacity) static ZSTDFrameParametersmalloc()Returns a newZSTDFrameParametersinstance allocated withmemAlloc.static ZSTDFrameParameters.Buffermalloc(int capacity) Returns a newZSTDFrameParameters.Bufferinstance allocated withmemAlloc.static ZSTDFrameParameters.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameParameters.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDFrameParametersmalloc(org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameParametersinstance allocated on the specifiedMemoryStack.static ZSTDFrameParametersDeprecated.static ZSTDFrameParameters.BuffermallocStack(int capacity) Deprecated.static ZSTDFrameParameters.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZSTDFrameParametersmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnchecksumFlag(long struct) Unsafe version ofchecksumFlag().static voidnchecksumFlag(long struct, int value) Unsafe version ofchecksumFlag.static intncontentSizeFlag(long struct) Unsafe version ofcontentSizeFlag().static voidncontentSizeFlag(long struct, int value) Unsafe version ofcontentSizeFlag.static intnnoDictIDFlag(long struct) Unsafe version ofnoDictIDFlag().static voidnnoDictIDFlag(long struct, int value) Unsafe version ofnoDictIDFlag.int1: nodictIDwill be saved into frame header (dictIDis only useful for dictionary compression)noDictIDFlag(int value) Sets the specified value to thenoDictIDFlag()field.set(int contentSizeFlag, int checksumFlag, int noDictIDFlag) Initializes this struct with the specified values.set(ZSTDFrameParameters 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. -
CONTENTSIZEFLAG
public static final int CONTENTSIZEFLAGThe struct member offsets. -
CHECKSUMFLAG
public static final int CHECKSUMFLAGThe struct member offsets. -
NODICTIDFLAG
public static final int NODICTIDFLAGThe struct member offsets.
-
-
Constructor Details
-
ZSTDFrameParameters
Creates aZSTDFrameParametersinstance 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<ZSTDFrameParameters>
-
contentSizeFlag
public int contentSizeFlag()1: content size will be in frame header (when known) -
checksumFlag
public int checksumFlag()1: generate a 32-bits checksum using XXH64 algorithm at end of frame, for error detection -
noDictIDFlag
public int noDictIDFlag()1: nodictIDwill be saved into frame header (dictIDis only useful for dictionary compression) -
contentSizeFlag
Sets the specified value to thecontentSizeFlag()field. -
checksumFlag
Sets the specified value to thechecksumFlag()field. -
noDictIDFlag
Sets the specified value to thenoDictIDFlag()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 newZSTDFrameParametersinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZSTDFrameParametersinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZSTDFrameParametersinstance allocated withBufferUtils. -
create
Returns a newZSTDFrameParametersinstance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDFrameParameters.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZSTDFrameParameters.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZSTDFrameParameters.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZSTDFrameParameters.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 ZSTDFrameParameters.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 ZSTDFrameParameters.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newZSTDFrameParametersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZSTDFrameParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZSTDFrameParameters.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZSTDFrameParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncontentSizeFlag
public static int ncontentSizeFlag(long struct) Unsafe version ofcontentSizeFlag(). -
nchecksumFlag
public static int nchecksumFlag(long struct) Unsafe version ofchecksumFlag(). -
nnoDictIDFlag
public static int nnoDictIDFlag(long struct) Unsafe version ofnoDictIDFlag(). -
ncontentSizeFlag
public static void ncontentSizeFlag(long struct, int value) Unsafe version ofcontentSizeFlag. -
nchecksumFlag
public static void nchecksumFlag(long struct, int value) Unsafe version ofchecksumFlag. -
nnoDictIDFlag
public static void nnoDictIDFlag(long struct, int value) Unsafe version ofnoDictIDFlag.
-