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 long ingested; unsigned long long consumed; unsigned long long produced; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZSTDFrameProgression.BufferAn array ofZSTDFrameProgressionstructs.
-
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 Modifier and Type Method Description static ZSTDFrameProgressioncalloc()Returns a newZSTDFrameProgressioninstance allocated withmemCalloc.static ZSTDFrameProgression.Buffercalloc(int capacity)Returns a newZSTDFrameProgression.Bufferinstance allocated withmemCalloc.static ZSTDFrameProgressioncallocStack()Returns a newZSTDFrameProgressioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static ZSTDFrameProgression.BuffercallocStack(int capacity)Returns a newZSTDFrameProgression.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static ZSTDFrameProgression.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameProgressioncallocStack(org.lwjgl.system.MemoryStack stack)Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longconsumed()Returns the value of theconsumedfield.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 ZSTDFrameProgressioncreateSafe(long address)static ZSTDFrameProgression.BuffercreateSafe(long address, int capacity)longingested()Returns the value of theingestedfield.static ZSTDFrameProgressionmalloc()Returns a newZSTDFrameProgressioninstance allocated withmemAlloc.static ZSTDFrameProgression.Buffermalloc(int capacity)Returns a newZSTDFrameProgression.Bufferinstance allocated withmemAlloc.static ZSTDFrameProgressionmallocStack()Returns a newZSTDFrameProgressioninstance allocated on the thread-localMemoryStack.static ZSTDFrameProgression.BuffermallocStack(int capacity)Returns a newZSTDFrameProgression.Bufferinstance allocated on the thread-localMemoryStack.static ZSTDFrameProgression.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newZSTDFrameProgression.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDFrameProgressionmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStack.static longnconsumed(long struct)Unsafe version ofconsumed().static longningested(long struct)Unsafe version ofingested().static longnproduced(long struct)Unsafe version ofproduced().longproduced()Returns the value of theproducedfield.intsizeof()
-
-
-
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()
Returns the value of theingestedfield.
-
consumed
public long consumed()
Returns the value of theconsumedfield.
-
produced
public long produced()
Returns the value of theproducedfield.
-
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
public static ZSTDFrameProgression mallocStack()
Returns a newZSTDFrameProgressioninstance allocated on the thread-localMemoryStack.
-
callocStack
public static ZSTDFrameProgression callocStack()
Returns a newZSTDFrameProgressioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static ZSTDFrameProgression mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDFrameProgressioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static ZSTDFrameProgression callocStack(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
-
mallocStack
public static ZSTDFrameProgression.Buffer mallocStack(int capacity)
Returns a newZSTDFrameProgression.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static ZSTDFrameProgression.Buffer callocStack(int capacity)
Returns a newZSTDFrameProgression.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static ZSTDFrameProgression.Buffer mallocStack(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
-
callocStack
public static ZSTDFrameProgression.Buffer callocStack(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().
-
-