Package org.lwjgl.util.zstd
Class ZSTDFrameProgression
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct ZSTD_frameProgression {
unsigned long long ingested;
unsigned long long consumed;
unsigned long long produced;
unsigned long long flushed;
unsigned int currentJobID;
unsigned int nbActiveWorkers;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionZSTDFrameProgression
(ByteBuffer container) Creates aZSTDFrameProgression
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDFrameProgression
calloc()
Returns a newZSTDFrameProgression
instance allocated withmemCalloc
.static ZSTDFrameProgression.Buffer
calloc
(int capacity) Returns a newZSTDFrameProgression.Buffer
instance allocated withmemCalloc
.static ZSTDFrameProgression.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newZSTDFrameProgression.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZSTDFrameProgression
calloc
(MemoryStack stack) Returns a newZSTDFrameProgression
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZSTDFrameProgression
Deprecated.static ZSTDFrameProgression.Buffer
callocStack
(int capacity) Deprecated.static ZSTDFrameProgression.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static ZSTDFrameProgression
callocStack
(MemoryStack stack) Deprecated.long
consumed()
static ZSTDFrameProgression
create()
Returns a newZSTDFrameProgression
instance allocated withBufferUtils
.static ZSTDFrameProgression.Buffer
create
(int capacity) Returns a newZSTDFrameProgression.Buffer
instance allocated withBufferUtils
.static ZSTDFrameProgression
create
(long address) Returns a newZSTDFrameProgression
instance for the specified memory address.static ZSTDFrameProgression.Buffer
create
(long address, int capacity) Create aZSTDFrameProgression.Buffer
instance at the specified memory.static @Nullable ZSTDFrameProgression
createSafe
(long address) static @Nullable ZSTDFrameProgression.Buffer
createSafe
(long address, int capacity) int
long
flushed()
long
ingested()
static ZSTDFrameProgression
malloc()
Returns a newZSTDFrameProgression
instance allocated withmemAlloc
.static ZSTDFrameProgression.Buffer
malloc
(int capacity) Returns a newZSTDFrameProgression.Buffer
instance allocated withmemAlloc
.static ZSTDFrameProgression.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newZSTDFrameProgression.Buffer
instance allocated on the specifiedMemoryStack
.static ZSTDFrameProgression
malloc
(MemoryStack stack) Returns a newZSTDFrameProgression
instance allocated on the specifiedMemoryStack
.static ZSTDFrameProgression
Deprecated.static ZSTDFrameProgression.Buffer
mallocStack
(int capacity) Deprecated.static ZSTDFrameProgression.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static ZSTDFrameProgression
mallocStack
(MemoryStack stack) Deprecated.int
static long
nconsumed
(long struct) Unsafe version ofconsumed()
.static int
ncurrentJobID
(long struct) Unsafe version ofcurrentJobID()
.static long
nflushed
(long struct) Unsafe version offlushed()
.static long
ningested
(long struct) Unsafe version ofingested()
.static int
nnbActiveWorkers
(long struct) Unsafe version ofnbActiveWorkers()
.static long
nproduced
(long struct) Unsafe version ofproduced()
.long
produced()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
INGESTED
public static final int INGESTEDThe struct member offsets. -
CONSUMED
public static final int CONSUMEDThe struct member offsets. -
PRODUCED
public static final int PRODUCEDThe struct member offsets. -
FLUSHED
public static final int FLUSHEDThe struct member offsets. -
CURRENTJOBID
public static final int CURRENTJOBIDThe struct member offsets. -
NBACTIVEWORKERS
public static final int NBACTIVEWORKERSThe struct member offsets.
-
-
Constructor Details
-
ZSTDFrameProgression
Creates aZSTDFrameProgression
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ZSTDFrameProgression>
-
ingested
public long ingested()- Returns:
- the value of the
ingested
field.
-
consumed
public long consumed()- Returns:
- the value of the
consumed
field.
-
produced
public long produced()- Returns:
- the value of the
produced
field.
-
flushed
public long flushed()- Returns:
- the value of the
flushed
field.
-
currentJobID
public int currentJobID()- Returns:
- the value of the
currentJobID
field.
-
nbActiveWorkers
public int nbActiveWorkers()- Returns:
- the value of the
nbActiveWorkers
field.
-
malloc
Returns a newZSTDFrameProgression
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newZSTDFrameProgression
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newZSTDFrameProgression
instance allocated withBufferUtils
. -
create
Returns a newZSTDFrameProgression
instance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDFrameProgression.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newZSTDFrameProgression.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newZSTDFrameProgression.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aZSTDFrameProgression.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newZSTDFrameProgression
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newZSTDFrameProgression
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newZSTDFrameProgression.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newZSTDFrameProgression.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ningested
public static long ningested(long struct) Unsafe version ofingested()
. -
nconsumed
public static long nconsumed(long struct) Unsafe version ofconsumed()
. -
nproduced
public static long nproduced(long struct) Unsafe version ofproduced()
. -
nflushed
public static long nflushed(long struct) Unsafe version offlushed()
. -
ncurrentJobID
public static int ncurrentJobID(long struct) Unsafe version ofcurrentJobID()
. -
nnbActiveWorkers
public static int nnbActiveWorkers(long struct) Unsafe version ofnbActiveWorkers()
.
-