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