Package org.lwjgl.odbc
Class DBMONEY
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.DBMONEY
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class DBMONEY extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct DBMONEY { LONG mnyhigh; ULONG mnylow; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DBMONEY.Buffer
An array ofDBMONEY
structs.
-
Constructor Summary
Constructors Constructor Description DBMONEY(java.nio.ByteBuffer container)
Creates aDBMONEY
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DBMONEY
calloc()
Returns a newDBMONEY
instance allocated withmemCalloc
.static DBMONEY.Buffer
calloc(int capacity)
Returns a newDBMONEY.Buffer
instance allocated withmemCalloc
.static DBMONEY
callocStack()
Returns a newDBMONEY
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static DBMONEY.Buffer
callocStack(int capacity)
Returns a newDBMONEY.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static DBMONEY.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DBMONEY
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DBMONEY
create()
Returns a newDBMONEY
instance allocated withBufferUtils
.static DBMONEY.Buffer
create(int capacity)
Returns a newDBMONEY.Buffer
instance allocated withBufferUtils
.static DBMONEY
create(long address)
Returns a newDBMONEY
instance for the specified memory address.static DBMONEY.Buffer
create(long address, int capacity)
Create aDBMONEY.Buffer
instance at the specified memory.static DBMONEY
createSafe(long address)
static DBMONEY.Buffer
createSafe(long address, int capacity)
static DBMONEY
malloc()
Returns a newDBMONEY
instance allocated withmemAlloc
.static DBMONEY.Buffer
malloc(int capacity)
Returns a newDBMONEY.Buffer
instance allocated withmemAlloc
.static DBMONEY
mallocStack()
Returns a newDBMONEY
instance allocated on the thread-localMemoryStack
.static DBMONEY.Buffer
mallocStack(int capacity)
Returns a newDBMONEY.Buffer
instance allocated on the thread-localMemoryStack
.static DBMONEY.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
.static DBMONEY
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
.int
mnyhigh()
Returns the value of themnyhigh
field.DBMONEY
mnyhigh(int value)
Sets the specified value to themnyhigh
field.int
mnylow()
Returns the value of themnylow
field.DBMONEY
mnylow(int value)
Sets the specified value to themnylow
field.static int
nmnyhigh(long struct)
Unsafe version ofmnyhigh()
.static void
nmnyhigh(long struct, int value)
Unsafe version ofmnyhigh
.static int
nmnylow(long struct)
Unsafe version ofmnylow()
.static void
nmnylow(long struct, int value)
Unsafe version ofmnylow
.DBMONEY
set(int mnyhigh, int mnylow)
Initializes this struct with the specified values.DBMONEY
set(DBMONEY src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
DBMONEY
public DBMONEY(java.nio.ByteBuffer container)
Creates aDBMONEY
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
mnyhigh
public int mnyhigh()
Returns the value of themnyhigh
field.
-
mnylow
public int mnylow()
Returns the value of themnylow
field.
-
mnyhigh
public DBMONEY mnyhigh(int value)
Sets the specified value to themnyhigh
field.
-
mnylow
public DBMONEY mnylow(int value)
Sets the specified value to themnylow
field.
-
set
public DBMONEY set(int mnyhigh, int mnylow)
Initializes this struct with the specified values.
-
set
public DBMONEY set(DBMONEY src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static DBMONEY malloc()
Returns a newDBMONEY
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static DBMONEY calloc()
Returns a newDBMONEY
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static DBMONEY create()
Returns a newDBMONEY
instance allocated withBufferUtils
.
-
create
public static DBMONEY create(long address)
Returns a newDBMONEY
instance for the specified memory address.
-
createSafe
@Nullable public static DBMONEY createSafe(long address)
-
malloc
public static DBMONEY.Buffer malloc(int capacity)
Returns a newDBMONEY.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static DBMONEY.Buffer calloc(int capacity)
Returns a newDBMONEY.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static DBMONEY.Buffer create(int capacity)
Returns a newDBMONEY.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static DBMONEY.Buffer create(long address, int capacity)
Create aDBMONEY.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static DBMONEY.Buffer createSafe(long address, int capacity)
-
mallocStack
public static DBMONEY mallocStack()
Returns a newDBMONEY
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static DBMONEY callocStack()
Returns a newDBMONEY
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static DBMONEY mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static DBMONEY callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static DBMONEY.Buffer mallocStack(int capacity)
Returns a newDBMONEY.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static DBMONEY.Buffer callocStack(int capacity)
Returns a newDBMONEY.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static DBMONEY.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static DBMONEY.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nmnyhigh
public static int nmnyhigh(long struct)
Unsafe version ofmnyhigh()
.
-
nmnylow
public static int nmnylow(long struct)
Unsafe version ofmnylow()
.
-
nmnyhigh
public static void nmnyhigh(long struct, int value)
Unsafe version ofmnyhigh
.
-
nmnylow
public static void nmnylow(long struct, int value)
Unsafe version ofmnylow
.
-
-