Package org.lwjgl.odbc
Class DBMONEY
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct DBMONEY {
LONG mnyhigh;
ULONG mnylow;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionDBMONEY
(ByteBuffer container) Creates aDBMONEY
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic DBMONEY
calloc()
Returns a newDBMONEY
instance allocated withmemCalloc
.static DBMONEY.Buffer
calloc
(int capacity) Returns a newDBMONEY.Buffer
instance allocated withmemCalloc
.static DBMONEY.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DBMONEY
calloc
(MemoryStack stack) Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DBMONEY
Deprecated.static DBMONEY.Buffer
callocStack
(int capacity) Deprecated.static DBMONEY.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static DBMONEY
callocStack
(MemoryStack stack) Deprecated.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 @Nullable DBMONEY
createSafe
(long address) static @Nullable 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.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
.static DBMONEY
malloc
(MemoryStack stack) Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
.static DBMONEY
Deprecated.static DBMONEY.Buffer
mallocStack
(int capacity) Deprecated.static DBMONEY.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static DBMONEY
mallocStack
(MemoryStack stack) Deprecated.int
mnyhigh()
mnyhigh
(int value) Sets the specified value to themnyhigh
field.int
mnylow()
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
.set
(int mnyhigh, int mnylow) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MNYHIGH
public static final int MNYHIGHThe struct member offsets. -
MNYLOW
public static final int MNYLOWThe struct member offsets.
-
-
Constructor Details
-
DBMONEY
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
mnyhigh
public int mnyhigh()- Returns:
- the value of the
mnyhigh
field.
-
mnylow
public int mnylow()- Returns:
- the value of the
mnylow
field.
-
mnyhigh
Sets the specified value to themnyhigh
field. -
mnylow
Sets the specified value to themnylow
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newDBMONEY
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newDBMONEY
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newDBMONEY
instance allocated withBufferUtils
. -
create
Returns a newDBMONEY
instance for the specified memory address. -
createSafe
-
malloc
Returns a newDBMONEY.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newDBMONEY.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newDBMONEY.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aDBMONEY.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newDBMONEY
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newDBMONEY.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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
.
-