public class LibDivideS32
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct libdivide_s32_t {
int32_t magic;
uint8_t more;
}| Modifier and Type | Class and Description |
|---|---|
static class |
LibDivideS32.Buffer
An array of
LibDivideS32 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAGIC
The struct member offsets.
|
static int |
MORE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
LibDivideS32(java.nio.ByteBuffer container)
Creates a
LibDivideS32 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static LibDivideS32 |
calloc()
Returns a new
LibDivideS32 instance allocated with memCalloc. |
static LibDivideS32.Buffer |
calloc(int capacity)
Returns a new
LibDivideS32.Buffer instance allocated with memCalloc. |
static LibDivideS32 |
callocStack()
Returns a new
LibDivideS32 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LibDivideS32.Buffer |
callocStack(int capacity)
Returns a new
LibDivideS32.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LibDivideS32.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LibDivideS32.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LibDivideS32 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LibDivideS32 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LibDivideS32 |
create()
Returns a new
LibDivideS32 instance allocated with BufferUtils. |
static LibDivideS32.Buffer |
create(int capacity)
Returns a new
LibDivideS32.Buffer instance allocated with BufferUtils. |
static LibDivideS32 |
create(long address)
Returns a new
LibDivideS32 instance for the specified memory address. |
static LibDivideS32.Buffer |
create(long address,
int capacity)
Create a
LibDivideS32.Buffer instance at the specified memory. |
static LibDivideS32 |
createSafe(long address)
|
static LibDivideS32.Buffer |
createSafe(long address,
int capacity)
|
int |
magic()
Returns the value of the
magic field. |
LibDivideS32 |
magic(int value)
Sets the specified value to the
magic field. |
static LibDivideS32 |
malloc()
Returns a new
LibDivideS32 instance allocated with memAlloc. |
static LibDivideS32.Buffer |
malloc(int capacity)
Returns a new
LibDivideS32.Buffer instance allocated with memAlloc. |
static LibDivideS32 |
mallocStack()
Returns a new
LibDivideS32 instance allocated on the thread-local MemoryStack. |
static LibDivideS32.Buffer |
mallocStack(int capacity)
Returns a new
LibDivideS32.Buffer instance allocated on the thread-local MemoryStack. |
static LibDivideS32.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LibDivideS32.Buffer instance allocated on the specified MemoryStack. |
static LibDivideS32 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LibDivideS32 instance allocated on the specified MemoryStack. |
byte |
more()
Returns the value of the
more field. |
LibDivideS32 |
more(byte value)
Sets the specified value to the
more field. |
static int |
nmagic(long struct)
Unsafe version of
magic(). |
static void |
nmagic(long struct,
int value)
Unsafe version of
magic. |
static byte |
nmore(long struct)
Unsafe version of
more(). |
static void |
nmore(long struct,
byte value)
Unsafe version of
more. |
LibDivideS32 |
set(int magic,
byte more)
Initializes this struct with the specified values.
|
LibDivideS32 |
set(LibDivideS32 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MAGIC
public static final int MORE
public LibDivideS32(java.nio.ByteBuffer container)
LibDivideS32 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 int magic()
magic field.public byte more()
more field.public LibDivideS32 magic(int value)
magic field.public LibDivideS32 more(byte value)
more field.public LibDivideS32 set(int magic, byte more)
public LibDivideS32 set(LibDivideS32 src)
src - the source structpublic static LibDivideS32 malloc()
LibDivideS32 instance allocated with memAlloc. The instance must be explicitly freed.public static LibDivideS32 calloc()
LibDivideS32 instance allocated with memCalloc. The instance must be explicitly freed.public static LibDivideS32 create()
LibDivideS32 instance allocated with BufferUtils.public static LibDivideS32 create(long address)
LibDivideS32 instance for the specified memory address.@Nullable public static LibDivideS32 createSafe(long address)
public static LibDivideS32.Buffer malloc(int capacity)
LibDivideS32.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LibDivideS32.Buffer calloc(int capacity)
LibDivideS32.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LibDivideS32.Buffer create(int capacity)
LibDivideS32.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static LibDivideS32.Buffer create(long address, int capacity)
LibDivideS32.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static LibDivideS32.Buffer createSafe(long address, int capacity)
public static LibDivideS32 mallocStack()
LibDivideS32 instance allocated on the thread-local MemoryStack.public static LibDivideS32 callocStack()
LibDivideS32 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static LibDivideS32 mallocStack(org.lwjgl.system.MemoryStack stack)
LibDivideS32 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static LibDivideS32 callocStack(org.lwjgl.system.MemoryStack stack)
LibDivideS32 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static LibDivideS32.Buffer mallocStack(int capacity)
LibDivideS32.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static LibDivideS32.Buffer callocStack(int capacity)
LibDivideS32.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static LibDivideS32.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LibDivideS32.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static LibDivideS32.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LibDivideS32.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 int nmagic(long struct)
magic().public static byte nmore(long struct)
more().public static void nmagic(long struct,
int value)
magic.public static void nmore(long struct,
byte value)
more.Copyright LWJGL. All Rights Reserved. License terms.