Package org.lwjgl.util.zstd
Class ZSTDParameters
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct ZSTD_parameters {
{@link ZSTDCompressionParameters ZSTD_compressionParameters} cParams;
{@link ZSTDFrameParameters ZSTD_frameParameters} fParams;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionZSTDParameters(ByteBuffer container) Creates aZSTDParametersinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDParameterscalloc()Returns a newZSTDParametersinstance allocated withmemCalloc.static ZSTDParameters.Buffercalloc(int capacity) Returns a newZSTDParameters.Bufferinstance allocated withmemCalloc.static ZSTDParameters.Buffercalloc(int capacity, MemoryStack stack) Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDParameterscalloc(MemoryStack stack) Returns a newZSTDParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDParametersDeprecated.static ZSTDParameters.BuffercallocStack(int capacity) Deprecated.static ZSTDParameters.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static ZSTDParameterscallocStack(MemoryStack stack) Deprecated.cParams()cParams(Consumer<ZSTDCompressionParameters> consumer) Passes thecParamsfield to the specifiedConsumer.cParams(ZSTDCompressionParameters value) Copies the specifiedZSTDCompressionParametersto thecParamsfield.static ZSTDParameterscreate()Returns a newZSTDParametersinstance allocated withBufferUtils.static ZSTDParameters.Buffercreate(int capacity) Returns a newZSTDParameters.Bufferinstance allocated withBufferUtils.static ZSTDParameterscreate(long address) Returns a newZSTDParametersinstance for the specified memory address.static ZSTDParameters.Buffercreate(long address, int capacity) Create aZSTDParameters.Bufferinstance at the specified memory.static @Nullable ZSTDParameterscreateSafe(long address) static @Nullable ZSTDParameters.BuffercreateSafe(long address, int capacity) fParams()fParams(Consumer<ZSTDFrameParameters> consumer) Passes thefParamsfield to the specifiedConsumer.fParams(ZSTDFrameParameters value) Copies the specifiedZSTDFrameParametersto thefParamsfield.static ZSTDParametersmalloc()Returns a newZSTDParametersinstance allocated withmemAlloc.static ZSTDParameters.Buffermalloc(int capacity) Returns a newZSTDParameters.Bufferinstance allocated withmemAlloc.static ZSTDParameters.Buffermalloc(int capacity, MemoryStack stack) Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDParametersmalloc(MemoryStack stack) Returns a newZSTDParametersinstance allocated on the specifiedMemoryStack.static ZSTDParametersDeprecated.static ZSTDParameters.BuffermallocStack(int capacity) Deprecated.static ZSTDParameters.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static ZSTDParametersmallocStack(MemoryStack stack) Deprecated.static ZSTDCompressionParametersncParams(long struct) Unsafe version ofcParams().static voidncParams(long struct, ZSTDCompressionParameters value) Unsafe version ofcParams.static ZSTDFrameParametersnfParams(long struct) Unsafe version offParams().static voidnfParams(long struct, ZSTDFrameParameters value) Unsafe version offParams.set(ZSTDCompressionParameters cParams, ZSTDFrameParameters fParams) Initializes this struct with the specified values.set(ZSTDParameters 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. -
CPARAMS
public static final int CPARAMSThe struct member offsets. -
FPARAMS
public static final int FPARAMSThe struct member offsets.
-
-
Constructor Details
-
ZSTDParameters
Creates aZSTDParametersinstance 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<ZSTDParameters>
-
cParams
- Returns:
- a
ZSTDCompressionParametersview of thecParamsfield.
-
fParams
- Returns:
- a
ZSTDFrameParametersview of thefParamsfield.
-
cParams
Copies the specifiedZSTDCompressionParametersto thecParamsfield. -
cParams
Passes thecParamsfield to the specifiedConsumer. -
fParams
Copies the specifiedZSTDFrameParametersto thefParamsfield. -
fParams
Passes thefParamsfield to the specifiedConsumer. -
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 newZSTDParametersinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZSTDParametersinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZSTDParametersinstance allocated withBufferUtils. -
create
Returns a newZSTDParametersinstance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDParameters.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZSTDParameters.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZSTDParameters.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZSTDParameters.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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newZSTDParametersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZSTDParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncParams
Unsafe version ofcParams(). -
nfParams
Unsafe version offParams(). -
ncParams
Unsafe version ofcParams. -
nfParams
Unsafe version offParams.
-