Package org.lwjgl.util.zstd
Class ZSTDParameters
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.zstd.ZSTDParameters
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDParameters extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct ZSTD_parameters {ZSTD_compressionParameterscParams;ZSTD_frameParametersfParams; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZSTDParameters.BufferAn array ofZSTDParametersstructs.
-
Constructor Summary
Constructors Constructor Description ZSTDParameters(java.nio.ByteBuffer container)Creates aZSTDParametersinstance 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 ZSTDParameterscalloc()Returns a newZSTDParametersinstance allocated withmemCalloc.static ZSTDParameters.Buffercalloc(int capacity)Returns a newZSTDParameters.Bufferinstance allocated withmemCalloc.static ZSTDParameters.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDParameterscalloc(org.lwjgl.system.MemoryStack stack)Returns a newZSTDParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDParameterscallocStack()Deprecated.static ZSTDParameters.BuffercallocStack(int capacity)Deprecated.static ZSTDParameters.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDParameterscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.ZSTDCompressionParameterscParams()ZSTDParameterscParams(java.util.function.Consumer<ZSTDCompressionParameters> consumer)Passes thecParamsfield to the specifiedConsumer.ZSTDParameterscParams(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 ZSTDParameterscreateSafe(long address)static ZSTDParameters.BuffercreateSafe(long address, int capacity)ZSTDFrameParametersfParams()ZSTDParametersfParams(java.util.function.Consumer<ZSTDFrameParameters> consumer)Passes thefParamsfield to the specifiedConsumer.ZSTDParametersfParams(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, org.lwjgl.system.MemoryStack stack)Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDParametersmalloc(org.lwjgl.system.MemoryStack stack)Returns a newZSTDParametersinstance allocated on the specifiedMemoryStack.static ZSTDParametersmallocStack()Deprecated.static ZSTDParameters.BuffermallocStack(int capacity)Deprecated.static ZSTDParameters.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDParametersmallocStack(org.lwjgl.system.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.ZSTDParametersset(ZSTDCompressionParameters cParams, ZSTDFrameParameters fParams)Initializes this struct with the specified values.ZSTDParametersset(ZSTDParameters src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
ZSTDParameters
public ZSTDParameters(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
cParams
public ZSTDCompressionParameters cParams()
- Returns:
- a
ZSTDCompressionParametersview of thecParamsfield.
-
fParams
public ZSTDFrameParameters fParams()
- Returns:
- a
ZSTDFrameParametersview of thefParamsfield.
-
cParams
public ZSTDParameters cParams(ZSTDCompressionParameters value)
Copies the specifiedZSTDCompressionParametersto thecParamsfield.
-
cParams
public ZSTDParameters cParams(java.util.function.Consumer<ZSTDCompressionParameters> consumer)
Passes thecParamsfield to the specifiedConsumer.
-
fParams
public ZSTDParameters fParams(ZSTDFrameParameters value)
Copies the specifiedZSTDFrameParametersto thefParamsfield.
-
fParams
public ZSTDParameters fParams(java.util.function.Consumer<ZSTDFrameParameters> consumer)
Passes thefParamsfield to the specifiedConsumer.
-
set
public ZSTDParameters set(ZSTDCompressionParameters cParams, ZSTDFrameParameters fParams)
Initializes this struct with the specified values.
-
set
public ZSTDParameters set(ZSTDParameters src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ZSTDParameters malloc()
Returns a newZSTDParametersinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ZSTDParameters calloc()
Returns a newZSTDParametersinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ZSTDParameters create()
Returns a newZSTDParametersinstance allocated withBufferUtils.
-
create
public static ZSTDParameters create(long address)
Returns a newZSTDParametersinstance for the specified memory address.
-
createSafe
@Nullable public static ZSTDParameters createSafe(long address)
-
malloc
public static ZSTDParameters.Buffer malloc(int capacity)
Returns a newZSTDParameters.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ZSTDParameters.Buffer calloc(int capacity)
Returns a newZSTDParameters.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDParameters.Buffer create(int capacity)
Returns a newZSTDParameters.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDParameters.Buffer create(long address, int capacity)
Create aZSTDParameters.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ZSTDParameters.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ZSTDParameters mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDParameters callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDParameters mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDParameters callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDParameters.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDParameters.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDParameters.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 ZSTDParameters.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static ZSTDParameters malloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParametersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ZSTDParameters calloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ZSTDParameters.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ZSTDParameters.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ncParams
public static ZSTDCompressionParameters ncParams(long struct)
Unsafe version ofcParams().
-
nfParams
public static ZSTDFrameParameters nfParams(long struct)
Unsafe version offParams().
-
ncParams
public static void ncParams(long struct, ZSTDCompressionParameters value)Unsafe version ofcParams.
-
nfParams
public static void nfParams(long struct, ZSTDFrameParameters value)Unsafe version offParams.
-
-