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.NativeResource
Layout
struct ZSTD_parameters {
ZSTD_compressionParameters
cParams;ZSTD_frameParameters
fParams; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZSTDParameters.Buffer
An array ofZSTDParameters
structs.
-
Constructor Summary
Constructors Constructor Description ZSTDParameters(java.nio.ByteBuffer container)
Creates aZSTDParameters
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZSTDParameters
calloc()
Returns a newZSTDParameters
instance allocated withmemCalloc
.static ZSTDParameters.Buffer
calloc(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated withmemCalloc
.static ZSTDParameters
callocStack()
Returns a newZSTDParameters
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static ZSTDParameters.Buffer
callocStack(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static ZSTDParameters.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZSTDParameters
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.ZSTDCompressionParameters
cParams()
Returns aZSTDCompressionParameters
view of thecParams
field.ZSTDParameters
cParams(java.util.function.Consumer<ZSTDCompressionParameters> consumer)
Passes thecParams
field to the specifiedConsumer
.ZSTDParameters
cParams(ZSTDCompressionParameters value)
Copies the specifiedZSTDCompressionParameters
to thecParams
field.static ZSTDParameters
create()
Returns a newZSTDParameters
instance allocated withBufferUtils
.static ZSTDParameters.Buffer
create(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated withBufferUtils
.static ZSTDParameters
create(long address)
Returns a newZSTDParameters
instance for the specified memory address.static ZSTDParameters.Buffer
create(long address, int capacity)
Create aZSTDParameters.Buffer
instance at the specified memory.static ZSTDParameters
createSafe(long address)
static ZSTDParameters.Buffer
createSafe(long address, int capacity)
ZSTDFrameParameters
fParams()
Returns aZSTDFrameParameters
view of thefParams
field.ZSTDParameters
fParams(java.util.function.Consumer<ZSTDFrameParameters> consumer)
Passes thefParams
field to the specifiedConsumer
.ZSTDParameters
fParams(ZSTDFrameParameters value)
Copies the specifiedZSTDFrameParameters
to thefParams
field.static ZSTDParameters
malloc()
Returns a newZSTDParameters
instance allocated withmemAlloc
.static ZSTDParameters.Buffer
malloc(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated withmemAlloc
.static ZSTDParameters
mallocStack()
Returns a newZSTDParameters
instance allocated on the thread-localMemoryStack
.static ZSTDParameters.Buffer
mallocStack(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated on the thread-localMemoryStack
.static ZSTDParameters.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters.Buffer
instance allocated on the specifiedMemoryStack
.static ZSTDParameters
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters
instance allocated on the specifiedMemoryStack
.static ZSTDCompressionParameters
ncParams(long struct)
Unsafe version ofcParams()
.static void
ncParams(long struct, ZSTDCompressionParameters value)
Unsafe version ofcParams
.static ZSTDFrameParameters
nfParams(long struct)
Unsafe version offParams()
.static void
nfParams(long struct, ZSTDFrameParameters value)
Unsafe version offParams
.ZSTDParameters
set(ZSTDCompressionParameters cParams, ZSTDFrameParameters fParams)
Initializes this struct with the specified values.ZSTDParameters
set(ZSTDParameters src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
ZSTDParameters
public ZSTDParameters(java.nio.ByteBuffer container)
Creates aZSTDParameters
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
cParams
public ZSTDCompressionParameters cParams()
Returns aZSTDCompressionParameters
view of thecParams
field.
-
fParams
public ZSTDFrameParameters fParams()
Returns aZSTDFrameParameters
view of thefParams
field.
-
cParams
public ZSTDParameters cParams(ZSTDCompressionParameters value)
Copies the specifiedZSTDCompressionParameters
to thecParams
field.
-
cParams
public ZSTDParameters cParams(java.util.function.Consumer<ZSTDCompressionParameters> consumer)
Passes thecParams
field to the specifiedConsumer
.
-
fParams
public ZSTDParameters fParams(ZSTDFrameParameters value)
Copies the specifiedZSTDFrameParameters
to thefParams
field.
-
fParams
public ZSTDParameters fParams(java.util.function.Consumer<ZSTDFrameParameters> consumer)
Passes thefParams
field 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 newZSTDParameters
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static ZSTDParameters calloc()
Returns a newZSTDParameters
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static ZSTDParameters create()
Returns a newZSTDParameters
instance allocated withBufferUtils
.
-
create
public static ZSTDParameters create(long address)
Returns a newZSTDParameters
instance for the specified memory address.
-
createSafe
@Nullable public static ZSTDParameters createSafe(long address)
-
malloc
public static ZSTDParameters.Buffer malloc(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static ZSTDParameters.Buffer calloc(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static ZSTDParameters.Buffer create(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static ZSTDParameters.Buffer create(long address, int capacity)
Create aZSTDParameters.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static ZSTDParameters.Buffer createSafe(long address, int capacity)
-
mallocStack
public static ZSTDParameters mallocStack()
Returns a newZSTDParameters
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static ZSTDParameters callocStack()
Returns a newZSTDParameters
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static ZSTDParameters mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static ZSTDParameters callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static ZSTDParameters.Buffer mallocStack(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static ZSTDParameters.Buffer callocStack(int capacity)
Returns a newZSTDParameters.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static ZSTDParameters.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static ZSTDParameters.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDParameters.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-