Package org.lwjgl.util.zstd
Class ZSTDCompressionParameters
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<ZSTDCompressionParameters>
org.lwjgl.util.zstd.ZSTDCompressionParameters
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDCompressionParameters
extends org.lwjgl.system.Struct<ZSTDCompressionParameters>
implements org.lwjgl.system.NativeResource
Layout
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
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 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, org.lwjgl.system.MemoryStack stack) Returns a newZSTDCompressionParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDCompressionParameterscalloc(org.lwjgl.system.MemoryStack stack) Returns a newZSTDCompressionParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDCompressionParametersDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZSTDCompressionParameterscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intchainLog()fully searched segment: larger == more compression, slower, more memory (useless for fast)chainLog(int value) Sets the specified value to thechainLog()field.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()dispatch table: larger == faster, more memoryhashLog(int value) Sets the specified value to thehashLog()field.static ZSTDCompressionParametersmalloc()Returns a newZSTDCompressionParametersinstance allocated withmemAlloc.malloc(int capacity) Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newZSTDCompressionParameters.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDCompressionParametersmalloc(org.lwjgl.system.MemoryStack stack) Returns a newZSTDCompressionParametersinstance allocated on the specifiedMemoryStack.static ZSTDCompressionParametersDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZSTDCompressionParametersmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intminMatch()match length searched: larger == faster decompression, sometimes less compressionminMatch(int value) Sets the specified value to theminMatch()field.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.intnb of searches: larger == more compression, slowersearchLog(int value) Sets the specified value to thesearchLog()field.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()intstrategy()seeZSTD_strategydefinitionstrategy(int value) Sets the specified value to thestrategy()field.intacceptable match size for optimal parser (only): larger == more compression, slowertargetLength(int value) Sets the specified value to thetargetLength()field.intlargest match distance: larger == more compression, more memory needed during decompressionwindowLog(int value) Sets the specified value to thewindowLog()field.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. -
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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<ZSTDCompressionParameters>
-
windowLog
public int windowLog()largest match distance: larger == more compression, more memory needed during decompression -
chainLog
public int chainLog()fully searched segment: larger == more compression, slower, more memory (useless for fast) -
hashLog
public int hashLog()dispatch table: larger == faster, more memory -
searchLog
public int searchLog()nb of searches: larger == more compression, slower -
minMatch
public int minMatch()match length searched: larger == faster decompression, sometimes less compression -
targetLength
public int targetLength()acceptable match size for optimal parser (only): larger == more compression, slower -
strategy
public int strategy()seeZSTD_strategydefinition -
windowLog
Sets the specified value to thewindowLog()field. -
chainLog
Sets the specified value to thechainLog()field. -
hashLog
Sets the specified value to thehashLog()field. -
searchLog
Sets the specified value to thesearchLog()field. -
minMatch
Sets the specified value to theminMatch()field. -
targetLength
Sets the specified value to thetargetLength()field. -
strategy
Sets the specified value to thestrategy()field. -
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
-
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 ZSTDCompressionParameters.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 ZSTDCompressionParameters.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
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
public static ZSTDCompressionParameters.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newZSTDCompressionParameters.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static ZSTDCompressionParameters.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) 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.
-