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