public class ZSTDFrameProgression
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
ingested – nb input bytes read and bufferedconsumed – nb input bytes actually compressedproduced – nb of compressed bytes generated and bufferedflushed – nb of compressed bytes flushed: not provided; can be tracked from caller sidecurrentJobID – mT only: latest started job nbnbActiveWorkers – mT only: nb of workers actively compressing at probe time
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDFrameProgression.Buffer
An array of
ZSTDFrameProgression structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CONSUMED
The struct member offsets.
|
static int |
CURRENTJOBID
The struct member offsets.
|
static int |
FLUSHED
The struct member offsets.
|
static int |
INGESTED
The struct member offsets.
|
static int |
NBACTIVEWORKERS
The struct member offsets.
|
static int |
PRODUCED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
ZSTDFrameProgression(java.nio.ByteBuffer container)
Creates a
ZSTDFrameProgression instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDFrameProgression |
calloc()
Returns a new
ZSTDFrameProgression instance allocated with memCalloc. |
static ZSTDFrameProgression.Buffer |
calloc(int capacity)
Returns a new
ZSTDFrameProgression.Buffer instance allocated with memCalloc. |
static ZSTDFrameProgression |
callocStack()
Returns a new
ZSTDFrameProgression instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDFrameProgression.Buffer |
callocStack(int capacity)
Returns a new
ZSTDFrameProgression.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDFrameProgression.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDFrameProgression |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameProgression instance allocated on the specified MemoryStack and initializes all its bits to zero. |
long |
consumed()
Returns the value of the
consumed field. |
static ZSTDFrameProgression |
create()
Returns a new
ZSTDFrameProgression instance allocated with BufferUtils. |
static ZSTDFrameProgression.Buffer |
create(int capacity)
Returns a new
ZSTDFrameProgression.Buffer instance allocated with BufferUtils. |
static ZSTDFrameProgression |
create(long address)
Returns a new
ZSTDFrameProgression instance for the specified memory address. |
static ZSTDFrameProgression.Buffer |
create(long address,
int capacity)
Create a
ZSTDFrameProgression.Buffer instance at the specified memory. |
static ZSTDFrameProgression |
createSafe(long address)
|
static ZSTDFrameProgression.Buffer |
createSafe(long address,
int capacity)
|
int |
currentJobID()
Returns the value of the
currentJobID field. |
long |
flushed()
Returns the value of the
flushed field. |
long |
ingested()
Returns the value of the
ingested field. |
static ZSTDFrameProgression |
malloc()
Returns a new
ZSTDFrameProgression instance allocated with memAlloc. |
static ZSTDFrameProgression.Buffer |
malloc(int capacity)
Returns a new
ZSTDFrameProgression.Buffer instance allocated with memAlloc. |
static ZSTDFrameProgression |
mallocStack()
Returns a new
ZSTDFrameProgression instance allocated on the thread-local MemoryStack. |
static ZSTDFrameProgression.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDFrameProgression.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDFrameProgression.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack. |
static ZSTDFrameProgression |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameProgression instance allocated on the specified MemoryStack. |
int |
nbActiveWorkers()
Returns the value of the
nbActiveWorkers field. |
static long |
nconsumed(long struct)
Unsafe version of
consumed(). |
static int |
ncurrentJobID(long struct)
Unsafe version of
currentJobID(). |
static long |
nflushed(long struct)
Unsafe version of
flushed(). |
static long |
ningested(long struct)
Unsafe version of
ingested(). |
static int |
nnbActiveWorkers(long struct)
Unsafe version of
nbActiveWorkers(). |
static long |
nproduced(long struct)
Unsafe version of
produced(). |
long |
produced()
Returns the value of the
produced field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int INGESTED
public static final int CONSUMED
public static final int PRODUCED
public static final int FLUSHED
public static final int CURRENTJOBID
public static final int NBACTIVEWORKERS
public ZSTDFrameProgression(java.nio.ByteBuffer container)
ZSTDFrameProgression instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long ingested()
ingested field.public long consumed()
consumed field.public long produced()
produced field.public long flushed()
flushed field.public int currentJobID()
currentJobID field.public int nbActiveWorkers()
nbActiveWorkers field.public static ZSTDFrameProgression malloc()
ZSTDFrameProgression instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDFrameProgression calloc()
ZSTDFrameProgression instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDFrameProgression create()
ZSTDFrameProgression instance allocated with BufferUtils.public static ZSTDFrameProgression create(long address)
ZSTDFrameProgression instance for the specified memory address.@Nullable public static ZSTDFrameProgression createSafe(long address)
public static ZSTDFrameProgression.Buffer malloc(int capacity)
ZSTDFrameProgression.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDFrameProgression.Buffer calloc(int capacity)
ZSTDFrameProgression.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDFrameProgression.Buffer create(int capacity)
ZSTDFrameProgression.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDFrameProgression.Buffer create(long address, int capacity)
ZSTDFrameProgression.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDFrameProgression.Buffer createSafe(long address, int capacity)
public static ZSTDFrameProgression mallocStack()
ZSTDFrameProgression instance allocated on the thread-local MemoryStack.public static ZSTDFrameProgression callocStack()
ZSTDFrameProgression instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDFrameProgression mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDFrameProgression instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDFrameProgression callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDFrameProgression instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDFrameProgression.Buffer mallocStack(int capacity)
ZSTDFrameProgression.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDFrameProgression.Buffer callocStack(int capacity)
ZSTDFrameProgression.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDFrameProgression.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDFrameProgression.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long ningested(long struct)
ingested().public static long nconsumed(long struct)
consumed().public static long nproduced(long struct)
produced().public static long nflushed(long struct)
flushed().public static int ncurrentJobID(long struct)
currentJobID().public static int nnbActiveWorkers(long struct)
nbActiveWorkers().Copyright LWJGL. All Rights Reserved. License terms.