Package org.lwjgl.util.zstd
Class ZSTDFrameProgression
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<ZSTDFrameProgression>
org.lwjgl.util.zstd.ZSTDFrameProgression
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDFrameProgression
extends org.lwjgl.system.Struct<ZSTDFrameProgression>
implements org.lwjgl.system.NativeResource
Layout
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
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aZSTDFrameProgressioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDFrameProgressioncalloc()Returns a newZSTDFrameProgressioninstance allocated withmemCalloc.static ZSTDFrameProgression.Buffercalloc(int capacity) Returns a newZSTDFrameProgression.Bufferinstance allocated withmemCalloc.static ZSTDFrameProgression.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameProgressioncalloc(org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameProgressionDeprecated.static ZSTDFrameProgression.BuffercallocStack(int capacity) Deprecated.static ZSTDFrameProgression.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZSTDFrameProgressioncallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.longconsumed()nb input bytes actually compressedstatic ZSTDFrameProgressioncreate()Returns a newZSTDFrameProgressioninstance allocated withBufferUtils.static ZSTDFrameProgression.Buffercreate(int capacity) Returns a newZSTDFrameProgression.Bufferinstance allocated withBufferUtils.static ZSTDFrameProgressioncreate(long address) Returns a newZSTDFrameProgressioninstance for the specified memory address.static ZSTDFrameProgression.Buffercreate(long address, int capacity) Create aZSTDFrameProgression.Bufferinstance at the specified memory.static @Nullable ZSTDFrameProgressioncreateSafe(long address) static @Nullable ZSTDFrameProgression.BuffercreateSafe(long address, int capacity) intmT only: latest started job nblongflushed()nb of compressed bytes flushed: not provided; can be tracked from caller sidelongingested()nb input bytes read and bufferedstatic ZSTDFrameProgressionmalloc()Returns a newZSTDFrameProgressioninstance allocated withmemAlloc.static ZSTDFrameProgression.Buffermalloc(int capacity) Returns a newZSTDFrameProgression.Bufferinstance allocated withmemAlloc.static ZSTDFrameProgression.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDFrameProgressionmalloc(org.lwjgl.system.MemoryStack stack) Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStack.static ZSTDFrameProgressionDeprecated.static ZSTDFrameProgression.BuffermallocStack(int capacity) Deprecated.static ZSTDFrameProgression.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static ZSTDFrameProgressionmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intmT only: nb of workers actively compressing at probe timestatic longnconsumed(long struct) Unsafe version ofconsumed().static intncurrentJobID(long struct) Unsafe version ofcurrentJobID().static longnflushed(long struct) Unsafe version offlushed().static longningested(long struct) Unsafe version ofingested().static intnnbActiveWorkers(long struct) Unsafe version ofnbActiveWorkers().static longnproduced(long struct) Unsafe version ofproduced().longproduced()nb of compressed bytes generated and bufferedintsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aZSTDFrameProgressioninstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<ZSTDFrameProgression>
-
ingested
public long ingested()nb input bytes read and buffered -
consumed
public long consumed()nb input bytes actually compressed -
produced
public long produced()nb of compressed bytes generated and buffered -
flushed
public long flushed()nb of compressed bytes flushed: not provided; can be tracked from caller side -
currentJobID
public int currentJobID()mT only: latest started job nb -
nbActiveWorkers
public int nbActiveWorkers()mT only: nb of workers actively compressing at probe time -
malloc
Returns a newZSTDFrameProgressioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZSTDFrameProgressioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZSTDFrameProgressioninstance allocated withBufferUtils. -
create
Returns a newZSTDFrameProgressioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDFrameProgression.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZSTDFrameProgression.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZSTDFrameProgression.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZSTDFrameProgression.Bufferinstance 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 public static ZSTDFrameProgression.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 ZSTDFrameProgression.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStackand 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().
-