public class STBVorbisAlloc
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
STBVorbis
struct stb_vorbis_alloc {
char * alloc_buffer;
int alloc_buffer_length_in_bytes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
STBVorbisAlloc.Buffer
An array of
STBVorbisAlloc structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALLOC_BUFFER
The struct member offsets.
|
static int |
ALLOC_BUFFER_LENGTH_IN_BYTES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
STBVorbisAlloc(java.nio.ByteBuffer container)
Creates a
STBVorbisAlloc instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
alloc_buffer_length_in_bytes()
Returns the value of the
alloc_buffer_length_in_bytes field. |
java.nio.ByteBuffer |
alloc_buffer()
Returns a
ByteBuffer view of the data pointed to by the alloc_buffer field. |
STBVorbisAlloc |
alloc_buffer(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the alloc_buffer field. |
static STBVorbisAlloc |
calloc()
Returns a new
STBVorbisAlloc instance allocated with memCalloc. |
static STBVorbisAlloc.Buffer |
calloc(int capacity)
Returns a new
STBVorbisAlloc.Buffer instance allocated with memCalloc. |
static STBVorbisAlloc |
callocStack()
Returns a new
STBVorbisAlloc instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBVorbisAlloc.Buffer |
callocStack(int capacity)
Returns a new
STBVorbisAlloc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBVorbisAlloc.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisAlloc.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBVorbisAlloc |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisAlloc instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBVorbisAlloc |
create()
Returns a new
STBVorbisAlloc instance allocated with BufferUtils. |
static STBVorbisAlloc.Buffer |
create(int capacity)
Returns a new
STBVorbisAlloc.Buffer instance allocated with BufferUtils. |
static STBVorbisAlloc |
create(long address)
Returns a new
STBVorbisAlloc instance for the specified memory address. |
static STBVorbisAlloc.Buffer |
create(long address,
int capacity)
Create a
STBVorbisAlloc.Buffer instance at the specified memory. |
static STBVorbisAlloc |
createSafe(long address)
|
static STBVorbisAlloc.Buffer |
createSafe(long address,
int capacity)
|
static STBVorbisAlloc |
malloc()
Returns a new
STBVorbisAlloc instance allocated with memAlloc. |
static STBVorbisAlloc.Buffer |
malloc(int capacity)
Returns a new
STBVorbisAlloc.Buffer instance allocated with memAlloc. |
static STBVorbisAlloc |
mallocStack()
Returns a new
STBVorbisAlloc instance allocated on the thread-local MemoryStack. |
static STBVorbisAlloc.Buffer |
mallocStack(int capacity)
Returns a new
STBVorbisAlloc.Buffer instance allocated on the thread-local MemoryStack. |
static STBVorbisAlloc.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisAlloc.Buffer instance allocated on the specified MemoryStack. |
static STBVorbisAlloc |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisAlloc instance allocated on the specified MemoryStack. |
static int |
nalloc_buffer_length_in_bytes(long struct)
Unsafe version of
alloc_buffer_length_in_bytes(). |
static void |
nalloc_buffer_length_in_bytes(long struct,
int value)
Sets the specified value to the
alloc_buffer_length_in_bytes field of the specified struct. |
static java.nio.ByteBuffer |
nalloc_buffer(long struct)
Unsafe version of
alloc_buffer. |
static void |
nalloc_buffer(long struct,
java.nio.ByteBuffer value)
Unsafe version of
alloc_buffer. |
STBVorbisAlloc |
set(STBVorbisAlloc src)
Copies the specified struct data to this struct.
|
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 ALLOC_BUFFER
public static final int ALLOC_BUFFER_LENGTH_IN_BYTES
public STBVorbisAlloc(java.nio.ByteBuffer container)
STBVorbisAlloc 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 alloc_buffer()
ByteBuffer view of the data pointed to by the alloc_buffer field.public int alloc_buffer_length_in_bytes()
alloc_buffer_length_in_bytes field.public STBVorbisAlloc alloc_buffer(java.nio.ByteBuffer value)
ByteBuffer to the alloc_buffer field.public STBVorbisAlloc set(STBVorbisAlloc src)
src - the source structpublic static STBVorbisAlloc malloc()
STBVorbisAlloc instance allocated with memAlloc. The instance must be explicitly freed.public static STBVorbisAlloc calloc()
STBVorbisAlloc instance allocated with memCalloc. The instance must be explicitly freed.public static STBVorbisAlloc create()
STBVorbisAlloc instance allocated with BufferUtils.public static STBVorbisAlloc create(long address)
STBVorbisAlloc instance for the specified memory address.@Nullable public static STBVorbisAlloc createSafe(long address)
public static STBVorbisAlloc.Buffer malloc(int capacity)
STBVorbisAlloc.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBVorbisAlloc.Buffer calloc(int capacity)
STBVorbisAlloc.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBVorbisAlloc.Buffer create(int capacity)
STBVorbisAlloc.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBVorbisAlloc.Buffer create(long address, int capacity)
STBVorbisAlloc.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBVorbisAlloc.Buffer createSafe(long address, int capacity)
public static STBVorbisAlloc mallocStack()
STBVorbisAlloc instance allocated on the thread-local MemoryStack.public static STBVorbisAlloc callocStack()
STBVorbisAlloc instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBVorbisAlloc mallocStack(org.lwjgl.system.MemoryStack stack)
STBVorbisAlloc instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBVorbisAlloc callocStack(org.lwjgl.system.MemoryStack stack)
STBVorbisAlloc instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBVorbisAlloc.Buffer mallocStack(int capacity)
STBVorbisAlloc.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBVorbisAlloc.Buffer callocStack(int capacity)
STBVorbisAlloc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBVorbisAlloc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBVorbisAlloc.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBVorbisAlloc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBVorbisAlloc.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 nalloc_buffer(long struct)
alloc_buffer.public static int nalloc_buffer_length_in_bytes(long struct)
alloc_buffer_length_in_bytes().public static void nalloc_buffer(long struct,
java.nio.ByteBuffer value)
alloc_buffer.public static void nalloc_buffer_length_in_bytes(long struct,
int value)
alloc_buffer_length_in_bytes field of the specified struct.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.