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.NativeResourceLayout
struct DBMONEY { LONG mnyhigh; ULONG mnylow; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDBMONEY.BufferAn array ofDBMONEYstructs.
-
Constructor Summary
Constructors Constructor Description DBMONEY(java.nio.ByteBuffer container)Creates aDBMONEYinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DBMONEYcalloc()Returns a newDBMONEYinstance allocated withmemCalloc.static DBMONEY.Buffercalloc(int capacity)Returns a newDBMONEY.Bufferinstance allocated withmemCalloc.static DBMONEY.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBMONEYcalloc(org.lwjgl.system.MemoryStack stack)Returns a newDBMONEYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBMONEYcallocStack()Deprecated.static DBMONEY.BuffercallocStack(int capacity)Deprecated.static DBMONEY.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static DBMONEYcallocStack(org.lwjgl.system.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 DBMONEYcreateSafe(long address)static 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, org.lwjgl.system.MemoryStack stack)Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStack.static DBMONEYmalloc(org.lwjgl.system.MemoryStack stack)Returns a newDBMONEYinstance allocated on the specifiedMemoryStack.static DBMONEYmallocStack()Deprecated.static DBMONEY.BuffermallocStack(int capacity)Deprecated.static DBMONEY.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static DBMONEYmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmnyhigh()DBMONEYmnyhigh(int value)Sets the specified value to themnyhighfield.intmnylow()DBMONEYmnylow(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.DBMONEYset(int mnyhigh, int mnylow)Initializes this struct with the specified values.DBMONEYset(DBMONEY src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
DBMONEY
public DBMONEY(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
mnyhigh
public int mnyhigh()
- Returns:
- the value of the
mnyhighfield.
-
mnylow
public int mnylow()
- Returns:
- the value of the
mnylowfield.
-
mnyhigh
public DBMONEY mnyhigh(int value)
Sets the specified value to themnyhighfield.
-
mnylow
public DBMONEY mnylow(int value)
Sets the specified value to themnylowfield.
-
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 newDBMONEYinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static DBMONEY calloc()
Returns a newDBMONEYinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static DBMONEY create()
Returns a newDBMONEYinstance allocated withBufferUtils.
-
create
public static DBMONEY create(long address)
Returns a newDBMONEYinstance for the specified memory address.
-
createSafe
@Nullable public static DBMONEY createSafe(long address)
-
malloc
public static DBMONEY.Buffer malloc(int capacity)
Returns a newDBMONEY.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static DBMONEY.Buffer calloc(int capacity)
Returns a newDBMONEY.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static DBMONEY.Buffer create(int capacity)
Returns a newDBMONEY.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static DBMONEY.Buffer create(long address, int capacity)
Create aDBMONEY.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static DBMONEY.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static DBMONEY mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DBMONEY callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DBMONEY mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DBMONEY callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DBMONEY.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static DBMONEY.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static DBMONEY.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static DBMONEY.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static DBMONEY malloc(org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEYinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static DBMONEY calloc(org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static DBMONEY.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static DBMONEY.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBMONEY.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-