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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aDBMONEYinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DBMONEYcalloc()Returns a newDBMONEYinstance allocated withmemCalloc.static DBMONEY.Buffercalloc(int capacity) Returns a newDBMONEY.Bufferinstance allocated withmemCalloc.static DBMONEY.Buffercalloc(int capacity, MemoryStack stack) Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBMONEYcalloc(MemoryStack stack) Returns a newDBMONEYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBMONEYDeprecated.static DBMONEY.BuffercallocStack(int capacity) Deprecated.static DBMONEY.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static DBMONEYcallocStack(MemoryStack stack) Deprecated.static DBMONEYcreate()Returns a newDBMONEYinstance allocated withBufferUtils.static DBMONEY.Buffercreate(int capacity) Returns a newDBMONEY.Bufferinstance allocated withBufferUtils.static DBMONEYcreate(long address) Returns a newDBMONEYinstance for the specified memory address.static DBMONEY.Buffercreate(long address, int capacity) Create aDBMONEY.Bufferinstance at the specified memory.static @Nullable DBMONEYcreateSafe(long address) static @Nullable DBMONEY.BuffercreateSafe(long address, int capacity) static DBMONEYmalloc()Returns a newDBMONEYinstance allocated withmemAlloc.static DBMONEY.Buffermalloc(int capacity) Returns a newDBMONEY.Bufferinstance allocated withmemAlloc.static DBMONEY.Buffermalloc(int capacity, MemoryStack stack) Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStack.static DBMONEYmalloc(MemoryStack stack) Returns a newDBMONEYinstance allocated on the specifiedMemoryStack.static DBMONEYDeprecated.static DBMONEY.BuffermallocStack(int capacity) Deprecated.static DBMONEY.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static DBMONEYmallocStack(MemoryStack stack) Deprecated.intmnyhigh()mnyhigh(int value) Sets the specified value to themnyhighfield.intmnylow()mnylow(int value) Sets the specified value to themnylowfield.static intnmnyhigh(long struct) Unsafe version ofmnyhigh().static voidnmnyhigh(long struct, int value) Unsafe version ofmnyhigh.static intnmnylow(long struct) Unsafe version ofmnylow().static voidnmnylow(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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aDBMONEYinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct). -
mnyhigh
public int mnyhigh()- Returns:
- the value of the
mnyhighfield.
-
mnylow
public int mnylow()- Returns:
- the value of the
mnylowfield.
-
mnyhigh
Sets the specified value to themnyhighfield. -
mnylow
Sets the specified value to themnylowfield. -
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 newDBMONEYinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newDBMONEYinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newDBMONEYinstance allocated withBufferUtils. -
create
Returns a newDBMONEYinstance for the specified memory address. -
createSafe
-
malloc
Returns a newDBMONEY.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newDBMONEY.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newDBMONEY.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aDBMONEY.Bufferinstance 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 newDBMONEYinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newDBMONEYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStackand 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.
-