public class ZSTDOutBuffer
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
dst – start of output buffersize – size of output bufferpos – position where writing stopped. Will be updated. Necessarily 0 ≤ pos ≤ size
struct ZSTD_outBuffer {
void * dst;
size_t size;
size_t pos;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDOutBuffer.Buffer
An array of
ZSTDOutBuffer structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DST
The struct member offsets.
|
static int |
POS
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
ZSTDOutBuffer(java.nio.ByteBuffer container)
Creates a
ZSTDOutBuffer instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDOutBuffer |
calloc()
Returns a new
ZSTDOutBuffer instance allocated with memCalloc. |
static ZSTDOutBuffer.Buffer |
calloc(int capacity)
Returns a new
ZSTDOutBuffer.Buffer instance allocated with memCalloc. |
static ZSTDOutBuffer |
callocStack()
Returns a new
ZSTDOutBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDOutBuffer.Buffer |
callocStack(int capacity)
Returns a new
ZSTDOutBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDOutBuffer.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDOutBuffer.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDOutBuffer |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDOutBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDOutBuffer |
create()
Returns a new
ZSTDOutBuffer instance allocated with BufferUtils. |
static ZSTDOutBuffer.Buffer |
create(int capacity)
Returns a new
ZSTDOutBuffer.Buffer instance allocated with BufferUtils. |
static ZSTDOutBuffer |
create(long address)
Returns a new
ZSTDOutBuffer instance for the specified memory address. |
static ZSTDOutBuffer.Buffer |
create(long address,
int capacity)
Create a
ZSTDOutBuffer.Buffer instance at the specified memory. |
static ZSTDOutBuffer |
createSafe(long address)
|
static ZSTDOutBuffer.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
dst()
Returns a
ByteBuffer view of the data pointed to by the dst field. |
ZSTDOutBuffer |
dst(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the dst field. |
static ZSTDOutBuffer |
malloc()
Returns a new
ZSTDOutBuffer instance allocated with memAlloc. |
static ZSTDOutBuffer.Buffer |
malloc(int capacity)
Returns a new
ZSTDOutBuffer.Buffer instance allocated with memAlloc. |
static ZSTDOutBuffer |
mallocStack()
Returns a new
ZSTDOutBuffer instance allocated on the thread-local MemoryStack. |
static ZSTDOutBuffer.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDOutBuffer.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDOutBuffer.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDOutBuffer.Buffer instance allocated on the specified MemoryStack. |
static ZSTDOutBuffer |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDOutBuffer instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
ndst(long struct)
Unsafe version of
dst. |
static void |
ndst(long struct,
java.nio.ByteBuffer value)
Unsafe version of
dst. |
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. |
long |
pos()
Returns the value of the
pos field. |
ZSTDOutBuffer |
pos(long value)
Sets the specified value to the
pos field. |
ZSTDOutBuffer |
set(java.nio.ByteBuffer dst,
long pos)
Initializes this struct with the specified values.
|
ZSTDOutBuffer |
set(ZSTDOutBuffer src)
Copies the specified struct data to this struct.
|
long |
size()
Returns the value of the
size field. |
int |
sizeof() |
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 DST
public static final int SIZE
public static final int POS
public ZSTDOutBuffer(java.nio.ByteBuffer container)
ZSTDOutBuffer 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 dst()
ByteBuffer view of the data pointed to by the dst field.public long size()
size field.public long pos()
pos field.public ZSTDOutBuffer dst(java.nio.ByteBuffer value)
ByteBuffer to the dst field.public ZSTDOutBuffer pos(long value)
pos field.public ZSTDOutBuffer set(java.nio.ByteBuffer dst, long pos)
public ZSTDOutBuffer set(ZSTDOutBuffer src)
src - the source structpublic static ZSTDOutBuffer malloc()
ZSTDOutBuffer instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDOutBuffer calloc()
ZSTDOutBuffer instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDOutBuffer create()
ZSTDOutBuffer instance allocated with BufferUtils.public static ZSTDOutBuffer create(long address)
ZSTDOutBuffer instance for the specified memory address.@Nullable public static ZSTDOutBuffer createSafe(long address)
public static ZSTDOutBuffer.Buffer malloc(int capacity)
ZSTDOutBuffer.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDOutBuffer.Buffer calloc(int capacity)
ZSTDOutBuffer.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDOutBuffer.Buffer create(int capacity)
ZSTDOutBuffer.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDOutBuffer.Buffer create(long address, int capacity)
ZSTDOutBuffer.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDOutBuffer.Buffer createSafe(long address, int capacity)
public static ZSTDOutBuffer mallocStack()
ZSTDOutBuffer instance allocated on the thread-local MemoryStack.public static ZSTDOutBuffer callocStack()
ZSTDOutBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDOutBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDOutBuffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDOutBuffer callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDOutBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDOutBuffer.Buffer mallocStack(int capacity)
ZSTDOutBuffer.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDOutBuffer.Buffer callocStack(int capacity)
ZSTDOutBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDOutBuffer.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDOutBuffer.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDOutBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDOutBuffer.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 ndst(long struct)
dst.public static long nsize(long struct)
size().public static long npos(long struct)
pos().public static void ndst(long struct,
java.nio.ByteBuffer value)
dst.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.