public class ZSTDInBuffer
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
src – start of input buffersize – size of input bufferpos – position where reading stopped. Will be updated. Necessarily 0 ≤ pos ≤ size
struct ZSTD_inBuffer {
void const * src;
size_t size;
size_t pos;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDInBuffer.Buffer
An array of
ZSTDInBuffer structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
POS
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRC
The struct member offsets.
|
| Constructor and Description |
|---|
ZSTDInBuffer(java.nio.ByteBuffer container)
Creates a
ZSTDInBuffer instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDInBuffer |
calloc()
Returns a new
ZSTDInBuffer instance allocated with memCalloc. |
static ZSTDInBuffer.Buffer |
calloc(int capacity)
Returns a new
ZSTDInBuffer.Buffer instance allocated with memCalloc. |
static ZSTDInBuffer |
callocStack()
Returns a new
ZSTDInBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDInBuffer.Buffer |
callocStack(int capacity)
Returns a new
ZSTDInBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDInBuffer.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDInBuffer.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDInBuffer |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDInBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDInBuffer |
create()
Returns a new
ZSTDInBuffer instance allocated with BufferUtils. |
static ZSTDInBuffer.Buffer |
create(int capacity)
Returns a new
ZSTDInBuffer.Buffer instance allocated with BufferUtils. |
static ZSTDInBuffer |
create(long address)
Returns a new
ZSTDInBuffer instance for the specified memory address. |
static ZSTDInBuffer.Buffer |
create(long address,
int capacity)
Create a
ZSTDInBuffer.Buffer instance at the specified memory. |
static ZSTDInBuffer |
createSafe(long address)
|
static ZSTDInBuffer.Buffer |
createSafe(long address,
int capacity)
|
static ZSTDInBuffer |
malloc()
Returns a new
ZSTDInBuffer instance allocated with memAlloc. |
static ZSTDInBuffer.Buffer |
malloc(int capacity)
Returns a new
ZSTDInBuffer.Buffer instance allocated with memAlloc. |
static ZSTDInBuffer |
mallocStack()
Returns a new
ZSTDInBuffer instance allocated on the thread-local MemoryStack. |
static ZSTDInBuffer.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDInBuffer.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDInBuffer.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDInBuffer.Buffer instance allocated on the specified MemoryStack. |
static ZSTDInBuffer |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDInBuffer instance allocated on the specified MemoryStack. |
static long |
npos(long struct)
Unsafe version of
pos(). |
static void |
npos(long struct,
long value)
Unsafe version of
pos. |
static long |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
long value)
Sets the specified value to the
size field of the specified struct. |
static java.nio.ByteBuffer |
nsrc(long struct)
Unsafe version of
src. |
static void |
nsrc(long struct,
java.nio.ByteBuffer value)
Unsafe version of
src. |
long |
pos()
Returns the value of the
pos field. |
ZSTDInBuffer |
pos(long value)
Sets the specified value to the
pos field. |
ZSTDInBuffer |
set(java.nio.ByteBuffer src,
long pos)
Initializes this struct with the specified values.
|
ZSTDInBuffer |
set(ZSTDInBuffer src)
Copies the specified struct data to this struct.
|
long |
size()
Returns the value of the
size field. |
int |
sizeof() |
java.nio.ByteBuffer |
src()
Returns a
ByteBuffer view of the data pointed to by the src field. |
ZSTDInBuffer |
src(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the src field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SRC
public static final int SIZE
public static final int POS
public ZSTDInBuffer(java.nio.ByteBuffer container)
ZSTDInBuffer instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.ByteBuffer src()
ByteBuffer view of the data pointed to by the src field.public long size()
size field.public long pos()
pos field.public ZSTDInBuffer src(java.nio.ByteBuffer value)
ByteBuffer to the src field.public ZSTDInBuffer pos(long value)
pos field.public ZSTDInBuffer set(java.nio.ByteBuffer src, long pos)
public ZSTDInBuffer set(ZSTDInBuffer src)
src - the source structpublic static ZSTDInBuffer malloc()
ZSTDInBuffer instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDInBuffer calloc()
ZSTDInBuffer instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDInBuffer create()
ZSTDInBuffer instance allocated with BufferUtils.public static ZSTDInBuffer create(long address)
ZSTDInBuffer instance for the specified memory address.@Nullable public static ZSTDInBuffer createSafe(long address)
public static ZSTDInBuffer.Buffer malloc(int capacity)
ZSTDInBuffer.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDInBuffer.Buffer calloc(int capacity)
ZSTDInBuffer.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDInBuffer.Buffer create(int capacity)
ZSTDInBuffer.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDInBuffer.Buffer create(long address, int capacity)
ZSTDInBuffer.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDInBuffer.Buffer createSafe(long address, int capacity)
public static ZSTDInBuffer mallocStack()
ZSTDInBuffer instance allocated on the thread-local MemoryStack.public static ZSTDInBuffer callocStack()
ZSTDInBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDInBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDInBuffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDInBuffer callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDInBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDInBuffer.Buffer mallocStack(int capacity)
ZSTDInBuffer.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDInBuffer.Buffer callocStack(int capacity)
ZSTDInBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDInBuffer.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDInBuffer.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDInBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDInBuffer.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.ByteBuffer nsrc(long struct)
src.public static long nsize(long struct)
size().public static long npos(long struct)
pos().public static void nsrc(long struct,
java.nio.ByteBuffer value)
src.public static void nsize(long struct,
long value)
size field of the specified struct.public static void npos(long struct,
long value)
pos.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.