Package org.lwjgl.util.zstd
Class ZSTDFrameProgression
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.zstd.ZSTDFrameProgression
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDFrameProgression extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct ZSTD_frameProgression { unsigned long longingested(); unsigned long longconsumed(); unsigned long longproduced(); unsigned long longflushed(); unsigned intcurrentJobID(); unsigned intnbActiveWorkers(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZSTDFrameProgression.BufferAn array ofZSTDFrameProgressionstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCONSUMED
CURRENTJOBID
FLUSHED
INGESTED
NBACTIVEWORKERS
PRODUCEDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description ZSTDFrameProgression(java.nio.ByteBuffer container)Creates aZSTDFrameProgressioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 ZSTDFrameProgressioncallocStack()Deprecated.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 ZSTDFrameProgressioncreateSafe(long address)static ZSTDFrameProgression.BuffercreateSafe(long address, int capacity)intcurrentJobID()mT 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 ZSTDFrameProgressionmallocStack()Deprecated.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.intnbActiveWorkers()mT 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()
-
-
-
Constructor Detail
-
ZSTDFrameProgression
public ZSTDFrameProgression(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public static ZSTDFrameProgression malloc()
Returns a newZSTDFrameProgressioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ZSTDFrameProgression calloc()
Returns a newZSTDFrameProgressioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ZSTDFrameProgression create()
Returns a newZSTDFrameProgressioninstance allocated withBufferUtils.
-
create
public static ZSTDFrameProgression create(long address)
Returns a newZSTDFrameProgressioninstance for the specified memory address.
-
createSafe
@Nullable public static ZSTDFrameProgression createSafe(long address)
-
malloc
public static ZSTDFrameProgression.Buffer malloc(int capacity)
Returns a newZSTDFrameProgression.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ZSTDFrameProgression.Buffer calloc(int capacity)
Returns a newZSTDFrameProgression.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDFrameProgression.Buffer create(int capacity)
Returns a newZSTDFrameProgression.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDFrameProgression.Buffer create(long address, int capacity)
Create aZSTDFrameProgression.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ZSTDFrameProgression.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ZSTDFrameProgression mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDFrameProgression callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDFrameProgression mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDFrameProgression callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDFrameProgression.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDFrameProgression.Buffer callocStack(int capacity)
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
public static ZSTDFrameProgression malloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ZSTDFrameProgression calloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ZSTDFrameProgression.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ZSTDFrameProgression.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
-