Package org.lwjgl.util.zstd
Class ZSTDFrameParameters
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct ZSTD_frameParameters {
int contentSizeFlag;
int checksumFlag;
int noDictIDFlag;
}-
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
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, MemoryStack stack) Returns a newZSTDFrameParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameParameterscalloc(MemoryStack stack) Returns a newZSTDFrameParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchecksumFlag(int value) Sets the specified value to thechecksumFlagfield.intcontentSizeFlag(int value) Sets the specified value to thecontentSizeFlagfield.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, MemoryStack stack) Returns a newZSTDFrameParameters.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDFrameParametersmalloc(MemoryStack stack) Returns a newZSTDFrameParametersinstance allocated on the specifiedMemoryStack.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.intnoDictIDFlag(int value) Sets the specified value to thenoDictIDFlagfield.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()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. -
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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ZSTDFrameParameters>
-
contentSizeFlag
public int contentSizeFlag()- Returns:
- the value of the
contentSizeFlagfield.
-
checksumFlag
public int checksumFlag()- Returns:
- the value of the
checksumFlagfield.
-
noDictIDFlag
public int noDictIDFlag()- Returns:
- the value of the
noDictIDFlagfield.
-
contentSizeFlag
Sets the specified value to thecontentSizeFlagfield. -
checksumFlag
Sets the specified value to thechecksumFlagfield. -
noDictIDFlag
Sets the specified value to thenoDictIDFlagfield. -
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
-
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.
-