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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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, MemoryStack stack) Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameProgressioncalloc(MemoryStack stack) Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longconsumed()static 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) intlongflushed()longingested()static ZSTDFrameProgressionmalloc()Returns a newZSTDFrameProgressioninstance allocated withmemAlloc.static ZSTDFrameProgression.Buffermalloc(int capacity) Returns a newZSTDFrameProgression.Bufferinstance allocated withmemAlloc.static ZSTDFrameProgression.Buffermalloc(int capacity, MemoryStack stack) Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDFrameProgressionmalloc(MemoryStack stack) Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStack.intstatic 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()intsizeof()Returnssizeof(struct).Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ZSTDFrameProgression>
-
ingested
public long ingested()- Returns:
- the value of the
ingestedfield.
-
consumed
public long consumed()- Returns:
- the value of the
consumedfield.
-
produced
public long produced()- Returns:
- the value of the
producedfield.
-
flushed
public long flushed()- Returns:
- the value of the
flushedfield.
-
currentJobID
public int currentJobID()- Returns:
- the value of the
currentJobIDfield.
-
nbActiveWorkers
public int nbActiveWorkers()- Returns:
- the value of the
nbActiveWorkersfield.
-
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
-
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().
-