Package org.lwjgl.util.zstd
Class ZSTDCompressionParameters
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class ZSTDCompressionParameters
extends Struct<ZSTDCompressionParameters>
implements NativeResource
struct ZSTD_compressionParameters {
unsigned int windowLog;
unsigned int chainLog;
unsigned int hashLog;
unsigned int searchLog;
unsigned int minMatch;
unsigned int targetLength;
ZSTD_strategy strategy;
}-
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 member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionZSTDCompressionParameters(ByteBuffer container) Creates aZSTDCompressionParametersinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDCompressionParameterscalloc()Returns a newZSTDCompressionParametersinstance allocated withmemCalloc.calloc(int capacity) Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newZSTDCompressionParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDCompressionParameterscalloc(MemoryStack stack) Returns a newZSTDCompressionParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchainLog()chainLog(int value) Sets the specified value to thechainLogfield.static ZSTDCompressionParameterscreate()Returns a newZSTDCompressionParametersinstance allocated withBufferUtils.create(int capacity) Returns a newZSTDCompressionParameters.Bufferinstance allocated withBufferUtils.static ZSTDCompressionParameterscreate(long address) Returns a newZSTDCompressionParametersinstance for the specified memory address.create(long address, int capacity) Create aZSTDCompressionParameters.Bufferinstance at the specified memory.static @Nullable ZSTDCompressionParameterscreateSafe(long address) static @Nullable ZSTDCompressionParameters.BuffercreateSafe(long address, int capacity) inthashLog()hashLog(int value) Sets the specified value to thehashLogfield.static ZSTDCompressionParametersmalloc()Returns a newZSTDCompressionParametersinstance allocated withmemAlloc.malloc(int capacity) Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newZSTDCompressionParameters.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDCompressionParametersmalloc(MemoryStack stack) Returns a newZSTDCompressionParametersinstance allocated on the specifiedMemoryStack.intminMatch()minMatch(int value) Sets the specified value to theminMatchfield.static intnchainLog(long struct) Unsafe version ofchainLog().static voidnchainLog(long struct, int value) Unsafe version ofchainLog.static intnhashLog(long struct) Unsafe version ofhashLog().static voidnhashLog(long struct, int value) Unsafe version ofhashLog.static intnminMatch(long struct) Unsafe version ofminMatch().static voidnminMatch(long struct, int value) Unsafe version ofminMatch.static intnsearchLog(long struct) Unsafe version ofsearchLog().static voidnsearchLog(long struct, int value) Unsafe version ofsearchLog.static intnstrategy(long struct) Unsafe version ofstrategy().static voidnstrategy(long struct, int value) Unsafe version ofstrategy.static intntargetLength(long struct) Unsafe version oftargetLength().static voidntargetLength(long struct, int value) Unsafe version oftargetLength.static intnwindowLog(long struct) Unsafe version ofwindowLog().static voidnwindowLog(long struct, int value) Unsafe version ofwindowLog.intsearchLog(int value) Sets the specified value to thesearchLogfield.set(int windowLog, int chainLog, int hashLog, int searchLog, int minMatch, int targetLength, int strategy) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstrategy()strategy(int value) Sets the specified value to thestrategyfield.inttargetLength(int value) Sets the specified value to thetargetLengthfield.intwindowLog(int value) Sets the specified value to thewindowLogfield.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. -
WINDOWLOG
public static final int WINDOWLOGThe struct member offsets. -
CHAINLOG
public static final int CHAINLOGThe struct member offsets. -
HASHLOG
public static final int HASHLOGThe struct member offsets. -
SEARCHLOG
public static final int SEARCHLOGThe struct member offsets. -
MINMATCH
public static final int MINMATCHThe struct member offsets. -
TARGETLENGTH
public static final int TARGETLENGTHThe struct member offsets. -
STRATEGY
public static final int STRATEGYThe struct member offsets.
-
-
Constructor Details
-
ZSTDCompressionParameters
Creates aZSTDCompressionParametersinstance 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<ZSTDCompressionParameters>
-
windowLog
public int windowLog()- Returns:
- the value of the
windowLogfield.
-
chainLog
public int chainLog()- Returns:
- the value of the
chainLogfield.
-
hashLog
public int hashLog()- Returns:
- the value of the
hashLogfield.
-
searchLog
public int searchLog()- Returns:
- the value of the
searchLogfield.
-
minMatch
public int minMatch()- Returns:
- the value of the
minMatchfield.
-
targetLength
public int targetLength()- Returns:
- the value of the
targetLengthfield.
-
strategy
public int strategy()- Returns:
- the value of the
strategyfield.
-
windowLog
Sets the specified value to thewindowLogfield. -
chainLog
Sets the specified value to thechainLogfield. -
hashLog
Sets the specified value to thehashLogfield. -
searchLog
Sets the specified value to thesearchLogfield. -
minMatch
Sets the specified value to theminMatchfield. -
targetLength
Sets the specified value to thetargetLengthfield. -
strategy
Sets the specified value to thestrategyfield. -
set
public ZSTDCompressionParameters set(int windowLog, int chainLog, int hashLog, int searchLog, int minMatch, int targetLength, int strategy) 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 newZSTDCompressionParametersinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZSTDCompressionParametersinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZSTDCompressionParametersinstance allocated withBufferUtils. -
create
Returns a newZSTDCompressionParametersinstance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZSTDCompressionParameters.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZSTDCompressionParameters.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newZSTDCompressionParametersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZSTDCompressionParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZSTDCompressionParameters.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZSTDCompressionParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nwindowLog
public static int nwindowLog(long struct) Unsafe version ofwindowLog(). -
nchainLog
public static int nchainLog(long struct) Unsafe version ofchainLog(). -
nhashLog
public static int nhashLog(long struct) Unsafe version ofhashLog(). -
nsearchLog
public static int nsearchLog(long struct) Unsafe version ofsearchLog(). -
nminMatch
public static int nminMatch(long struct) Unsafe version ofminMatch(). -
ntargetLength
public static int ntargetLength(long struct) Unsafe version oftargetLength(). -
nstrategy
public static int nstrategy(long struct) Unsafe version ofstrategy(). -
nwindowLog
public static void nwindowLog(long struct, int value) Unsafe version ofwindowLog. -
nchainLog
public static void nchainLog(long struct, int value) Unsafe version ofchainLog. -
nhashLog
public static void nhashLog(long struct, int value) Unsafe version ofhashLog. -
nsearchLog
public static void nsearchLog(long struct, int value) Unsafe version ofsearchLog. -
nminMatch
public static void nminMatch(long struct, int value) Unsafe version ofminMatch. -
ntargetLength
public static void ntargetLength(long struct, int value) Unsafe version oftargetLength. -
nstrategy
public static void nstrategy(long struct, int value) Unsafe version ofstrategy.
-