Package org.lwjgl.util.zstd
Class ZSTDInBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.zstd.ZSTDInBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDInBuffer extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZSTDInBuffer.BufferAn array ofZSTDInBufferstructs.
-
Constructor Summary
Constructors Constructor Description ZSTDInBuffer(java.nio.ByteBuffer container)Creates aZSTDInBufferinstance 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 ZSTDInBuffercalloc()Returns a newZSTDInBufferinstance allocated withmemCalloc.static ZSTDInBuffer.Buffercalloc(int capacity)Returns a newZSTDInBuffer.Bufferinstance allocated withmemCalloc.static ZSTDInBuffer.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newZSTDInBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDInBuffercalloc(org.lwjgl.system.MemoryStack stack)Returns a newZSTDInBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDInBuffercallocStack()Deprecated.static ZSTDInBuffer.BuffercallocStack(int capacity)Deprecated.static ZSTDInBuffer.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDInBuffercallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDInBuffercreate()Returns a newZSTDInBufferinstance allocated withBufferUtils.static ZSTDInBuffer.Buffercreate(int capacity)Returns a newZSTDInBuffer.Bufferinstance allocated withBufferUtils.static ZSTDInBuffercreate(long address)Returns a newZSTDInBufferinstance for the specified memory address.static ZSTDInBuffer.Buffercreate(long address, int capacity)Create aZSTDInBuffer.Bufferinstance at the specified memory.static ZSTDInBuffercreateSafe(long address)static ZSTDInBuffer.BuffercreateSafe(long address, int capacity)static ZSTDInBuffermalloc()Returns a newZSTDInBufferinstance allocated withmemAlloc.static ZSTDInBuffer.Buffermalloc(int capacity)Returns a newZSTDInBuffer.Bufferinstance allocated withmemAlloc.static ZSTDInBuffer.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newZSTDInBuffer.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDInBuffermalloc(org.lwjgl.system.MemoryStack stack)Returns a newZSTDInBufferinstance allocated on the specifiedMemoryStack.static ZSTDInBuffermallocStack()Deprecated.static ZSTDInBuffer.BuffermallocStack(int capacity)Deprecated.static ZSTDInBuffer.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDInBuffermallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnpos(long struct)Unsafe version ofpos().static voidnpos(long struct, long value)Unsafe version ofpos.static longnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, long value)Sets the specified value to thesizefield of the specifiedstruct.static java.nio.ByteBuffernsrc(long struct)Unsafe version ofsrc.static voidnsrc(long struct, java.nio.ByteBuffer value)Unsafe version ofsrc.longpos()position where reading stopped.ZSTDInBufferpos(long value)Sets the specified value to thepos()field.ZSTDInBufferset(java.nio.ByteBuffer src, long pos)Initializes this struct with the specified values.ZSTDInBufferset(ZSTDInBuffer src)Copies the specified struct data to this struct.longsize()size of input bufferintsizeof()java.nio.ByteBuffersrc()start of input bufferZSTDInBuffersrc(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thesrc()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
ZSTDInBuffer
public ZSTDInBuffer(java.nio.ByteBuffer container)
Creates aZSTDInBufferinstance 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
-
src
public java.nio.ByteBuffer src()
start of input buffer
-
size
public long size()
size of input buffer
-
pos
public long pos()
position where reading stopped. Will be updated. Necessarily 0 ≤pos≤size
-
src
public ZSTDInBuffer src(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thesrc()field.
-
pos
public ZSTDInBuffer pos(long value)
Sets the specified value to thepos()field.
-
set
public ZSTDInBuffer set(java.nio.ByteBuffer src, long pos)
Initializes this struct with the specified values.
-
set
public ZSTDInBuffer set(ZSTDInBuffer src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ZSTDInBuffer malloc()
Returns a newZSTDInBufferinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ZSTDInBuffer calloc()
Returns a newZSTDInBufferinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ZSTDInBuffer create()
Returns a newZSTDInBufferinstance allocated withBufferUtils.
-
create
public static ZSTDInBuffer create(long address)
Returns a newZSTDInBufferinstance for the specified memory address.
-
createSafe
@Nullable public static ZSTDInBuffer createSafe(long address)
-
malloc
public static ZSTDInBuffer.Buffer malloc(int capacity)
Returns a newZSTDInBuffer.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ZSTDInBuffer.Buffer calloc(int capacity)
Returns a newZSTDInBuffer.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDInBuffer.Buffer create(int capacity)
Returns a newZSTDInBuffer.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDInBuffer.Buffer create(long address, int capacity)
Create aZSTDInBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ZSTDInBuffer.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ZSTDInBuffer mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDInBuffer callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDInBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDInBuffer callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDInBuffer.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDInBuffer.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDInBuffer.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 ZSTDInBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static ZSTDInBuffer malloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDInBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ZSTDInBuffer calloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDInBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ZSTDInBuffer.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDInBuffer.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ZSTDInBuffer.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDInBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsrc
public static java.nio.ByteBuffer nsrc(long struct)
Unsafe version ofsrc.
-
nsize
public static long nsize(long struct)
Unsafe version ofsize().
-
npos
public static long npos(long struct)
Unsafe version ofpos().
-
nsrc
public static void nsrc(long struct, java.nio.ByteBuffer value)Unsafe version ofsrc.
-
nsize
public static void nsize(long struct, long value)Sets the specified value to thesizefield of the specifiedstruct.
-
npos
public static void npos(long struct, long value)Unsafe version ofpos.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-