Package org.lwjgl.util.zstd
Class ZSTDCompressionParameters
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.zstd.ZSTDCompressionParameters
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDCompressionParameters extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct ZSTD_compressionParameters { unsigned intwindowLog(); unsigned intchainLog(); unsigned inthashLog(); unsigned intsearchLog(); unsigned intminMatch(); unsigned inttargetLength(); ZSTD_strategystrategy(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZSTDCompressionParameters.BufferAn array ofZSTDCompressionParametersstructs.
-
Constructor Summary
Constructors Constructor Description ZSTDCompressionParameters(java.nio.ByteBuffer container)Creates aZSTDCompressionParametersinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ZSTDCompressionParameterscalloc()Returns a newZSTDCompressionParametersinstance allocated withmemCalloc.static ZSTDCompressionParameters.Buffercalloc(int capacity)Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemCalloc.static ZSTDCompressionParameters.Buffercalloc(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 ZSTDCompressionParameterscallocStack()Deprecated.static ZSTDCompressionParameters.BuffercallocStack(int capacity)Deprecated.static ZSTDCompressionParameters.BuffercallocStack(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)ZSTDCompressionParameterschainLog(int value)Sets the specified value to thechainLog()field.static ZSTDCompressionParameterscreate()Returns a newZSTDCompressionParametersinstance allocated withBufferUtils.static ZSTDCompressionParameters.Buffercreate(int capacity)Returns a newZSTDCompressionParameters.Bufferinstance allocated withBufferUtils.static ZSTDCompressionParameterscreate(long address)Returns a newZSTDCompressionParametersinstance for the specified memory address.static ZSTDCompressionParameters.Buffercreate(long address, int capacity)Create aZSTDCompressionParameters.Bufferinstance at the specified memory.static ZSTDCompressionParameterscreateSafe(long address)static ZSTDCompressionParameters.BuffercreateSafe(long address, int capacity)inthashLog()dispatch table: larger == faster, more memoryZSTDCompressionParametershashLog(int value)Sets the specified value to thehashLog()field.static ZSTDCompressionParametersmalloc()Returns a newZSTDCompressionParametersinstance allocated withmemAlloc.static ZSTDCompressionParameters.Buffermalloc(int capacity)Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemAlloc.static ZSTDCompressionParameters.Buffermalloc(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 ZSTDCompressionParametersmallocStack()Deprecated.static ZSTDCompressionParameters.BuffermallocStack(int capacity)Deprecated.static ZSTDCompressionParameters.BuffermallocStack(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 compressionZSTDCompressionParametersminMatch(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.intsearchLog()nb of searches: larger == more compression, slowerZSTDCompressionParameterssearchLog(int value)Sets the specified value to thesearchLog()field.ZSTDCompressionParametersset(int windowLog, int chainLog, int hashLog, int searchLog, int minMatch, int targetLength, int strategy)Initializes this struct with the specified values.ZSTDCompressionParametersset(ZSTDCompressionParameters src)Copies the specified struct data to this struct.intsizeof()intstrategy()seeZSTD_strategydefinitionZSTDCompressionParametersstrategy(int value)Sets the specified value to thestrategy()field.inttargetLength()acceptable match size for optimal parser (only): larger == more compression, slowerZSTDCompressionParameterstargetLength(int value)Sets the specified value to thetargetLength()field.intwindowLog()largest match distance: larger == more compression, more memory needed during decompressionZSTDCompressionParameterswindowLog(int value)Sets the specified value to thewindowLog()field.
-
-
-
Constructor Detail
-
ZSTDCompressionParameters
public ZSTDCompressionParameters(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public ZSTDCompressionParameters windowLog(int value)
Sets the specified value to thewindowLog()field.
-
chainLog
public ZSTDCompressionParameters chainLog(int value)
Sets the specified value to thechainLog()field.
-
hashLog
public ZSTDCompressionParameters hashLog(int value)
Sets the specified value to thehashLog()field.
-
searchLog
public ZSTDCompressionParameters searchLog(int value)
Sets the specified value to thesearchLog()field.
-
minMatch
public ZSTDCompressionParameters minMatch(int value)
Sets the specified value to theminMatch()field.
-
targetLength
public ZSTDCompressionParameters targetLength(int value)
Sets the specified value to thetargetLength()field.
-
strategy
public ZSTDCompressionParameters strategy(int value)
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
public ZSTDCompressionParameters set(ZSTDCompressionParameters src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ZSTDCompressionParameters malloc()
Returns a newZSTDCompressionParametersinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ZSTDCompressionParameters calloc()
Returns a newZSTDCompressionParametersinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ZSTDCompressionParameters create()
Returns a newZSTDCompressionParametersinstance allocated withBufferUtils.
-
create
public static ZSTDCompressionParameters create(long address)
Returns a newZSTDCompressionParametersinstance for the specified memory address.
-
createSafe
@Nullable public static ZSTDCompressionParameters createSafe(long address)
-
malloc
public static ZSTDCompressionParameters.Buffer malloc(int capacity)
Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ZSTDCompressionParameters.Buffer calloc(int capacity)
Returns a newZSTDCompressionParameters.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDCompressionParameters.Buffer create(int capacity)
Returns a newZSTDCompressionParameters.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDCompressionParameters.Buffer create(long address, int capacity)
Create aZSTDCompressionParameters.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ZSTDCompressionParameters.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ZSTDCompressionParameters mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDCompressionParameters callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDCompressionParameters mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDCompressionParameters callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDCompressionParameters.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDCompressionParameters.Buffer callocStack(int capacity)
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
public static ZSTDCompressionParameters malloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDCompressionParametersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ZSTDCompressionParameters calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-