public class ZSTDBounds
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct ZSTD_bounds {
size_t error;
int lowerBound;
int upperBound;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDBounds.Buffer
An array of
ZSTDBounds structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ERROR
The struct member offsets.
|
static int |
LOWERBOUND
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UPPERBOUND
The struct member offsets.
|
| Constructor and Description |
|---|
ZSTDBounds(java.nio.ByteBuffer container)
Creates a
ZSTDBounds instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDBounds |
calloc()
Returns a new
ZSTDBounds instance allocated with memCalloc. |
static ZSTDBounds.Buffer |
calloc(int capacity)
Returns a new
ZSTDBounds.Buffer instance allocated with memCalloc. |
static ZSTDBounds |
callocStack()
Returns a new
ZSTDBounds instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDBounds.Buffer |
callocStack(int capacity)
Returns a new
ZSTDBounds.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDBounds.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDBounds.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDBounds |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDBounds instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDBounds |
create()
Returns a new
ZSTDBounds instance allocated with BufferUtils. |
static ZSTDBounds.Buffer |
create(int capacity)
Returns a new
ZSTDBounds.Buffer instance allocated with BufferUtils. |
static ZSTDBounds |
create(long address)
Returns a new
ZSTDBounds instance for the specified memory address. |
static ZSTDBounds.Buffer |
create(long address,
int capacity)
Create a
ZSTDBounds.Buffer instance at the specified memory. |
static ZSTDBounds |
createSafe(long address)
|
static ZSTDBounds.Buffer |
createSafe(long address,
int capacity)
|
long |
error()
Returns the value of the
error field. |
int |
lowerBound()
Returns the value of the
lowerBound field. |
static ZSTDBounds |
malloc()
Returns a new
ZSTDBounds instance allocated with memAlloc. |
static ZSTDBounds.Buffer |
malloc(int capacity)
Returns a new
ZSTDBounds.Buffer instance allocated with memAlloc. |
static ZSTDBounds |
mallocStack()
Returns a new
ZSTDBounds instance allocated on the thread-local MemoryStack. |
static ZSTDBounds.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDBounds.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDBounds.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDBounds.Buffer instance allocated on the specified MemoryStack. |
static ZSTDBounds |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDBounds instance allocated on the specified MemoryStack. |
static long |
nerror(long struct)
Unsafe version of
error(). |
static int |
nlowerBound(long struct)
Unsafe version of
lowerBound(). |
static int |
nupperBound(long struct)
Unsafe version of
upperBound(). |
int |
sizeof() |
int |
upperBound()
Returns the value of the
upperBound field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ERROR
public static final int LOWERBOUND
public static final int UPPERBOUND
public ZSTDBounds(java.nio.ByteBuffer container)
ZSTDBounds 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 long error()
error field.public int lowerBound()
lowerBound field.public int upperBound()
upperBound field.public static ZSTDBounds malloc()
ZSTDBounds instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDBounds calloc()
ZSTDBounds instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDBounds create()
ZSTDBounds instance allocated with BufferUtils.public static ZSTDBounds create(long address)
ZSTDBounds instance for the specified memory address.@Nullable public static ZSTDBounds createSafe(long address)
public static ZSTDBounds.Buffer malloc(int capacity)
ZSTDBounds.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDBounds.Buffer calloc(int capacity)
ZSTDBounds.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDBounds.Buffer create(int capacity)
ZSTDBounds.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDBounds.Buffer create(long address, int capacity)
ZSTDBounds.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDBounds.Buffer createSafe(long address, int capacity)
public static ZSTDBounds mallocStack()
ZSTDBounds instance allocated on the thread-local MemoryStack.public static ZSTDBounds callocStack()
ZSTDBounds instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDBounds mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDBounds instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDBounds callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDBounds instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDBounds.Buffer mallocStack(int capacity)
ZSTDBounds.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDBounds.Buffer callocStack(int capacity)
ZSTDBounds.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDBounds.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDBounds.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDBounds.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDBounds.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 long nerror(long struct)
error().public static int nlowerBound(long struct)
lowerBound().public static int nupperBound(long struct)
upperBound().Copyright LWJGL. All Rights Reserved. License terms.