Package org.lwjgl.odbc
Class DBDATETIME
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.DBDATETIME
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class DBDATETIME extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct DBDATETIME { LONG dtdays; ULONG dttime; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDBDATETIME.BufferAn array ofDBDATETIMEstructs.
-
Constructor Summary
Constructors Constructor Description DBDATETIME(java.nio.ByteBuffer container)Creates aDBDATETIMEinstance 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 DBDATETIMEcalloc()Returns a newDBDATETIMEinstance allocated withmemCalloc.static DBDATETIME.Buffercalloc(int capacity)Returns a newDBDATETIME.Bufferinstance allocated withmemCalloc.static DBDATETIME.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIME.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBDATETIMEcalloc(org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIMEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBDATETIMEcallocStack()Deprecated.static DBDATETIME.BuffercallocStack(int capacity)Deprecated.static DBDATETIME.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static DBDATETIMEcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static DBDATETIMEcreate()Returns a newDBDATETIMEinstance allocated withBufferUtils.static DBDATETIME.Buffercreate(int capacity)Returns a newDBDATETIME.Bufferinstance allocated withBufferUtils.static DBDATETIMEcreate(long address)Returns a newDBDATETIMEinstance for the specified memory address.static DBDATETIME.Buffercreate(long address, int capacity)Create aDBDATETIME.Bufferinstance at the specified memory.static DBDATETIMEcreateSafe(long address)static DBDATETIME.BuffercreateSafe(long address, int capacity)intdtdays()DBDATETIMEdtdays(int value)Sets the specified value to thedtdaysfield.intdttime()DBDATETIMEdttime(int value)Sets the specified value to thedttimefield.static DBDATETIMEmalloc()Returns a newDBDATETIMEinstance allocated withmemAlloc.static DBDATETIME.Buffermalloc(int capacity)Returns a newDBDATETIME.Bufferinstance allocated withmemAlloc.static DBDATETIME.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIME.Bufferinstance allocated on the specifiedMemoryStack.static DBDATETIMEmalloc(org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIMEinstance allocated on the specifiedMemoryStack.static DBDATETIMEmallocStack()Deprecated.static DBDATETIME.BuffermallocStack(int capacity)Deprecated.static DBDATETIME.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static DBDATETIMEmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intndtdays(long struct)Unsafe version ofdtdays().static voidndtdays(long struct, int value)Unsafe version ofdtdays.static intndttime(long struct)Unsafe version ofdttime().static voidndttime(long struct, int value)Unsafe version ofdttime.DBDATETIMEset(int dtdays, int dttime)Initializes this struct with the specified values.DBDATETIMEset(DBDATETIME src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
DBDATETIME
public DBDATETIME(java.nio.ByteBuffer container)
Creates aDBDATETIMEinstance 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
-
dtdays
public int dtdays()
- Returns:
- the value of the
dtdaysfield.
-
dttime
public int dttime()
- Returns:
- the value of the
dttimefield.
-
dtdays
public DBDATETIME dtdays(int value)
Sets the specified value to thedtdaysfield.
-
dttime
public DBDATETIME dttime(int value)
Sets the specified value to thedttimefield.
-
set
public DBDATETIME set(int dtdays, int dttime)
Initializes this struct with the specified values.
-
set
public DBDATETIME set(DBDATETIME src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static DBDATETIME malloc()
Returns a newDBDATETIMEinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static DBDATETIME calloc()
Returns a newDBDATETIMEinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static DBDATETIME create()
Returns a newDBDATETIMEinstance allocated withBufferUtils.
-
create
public static DBDATETIME create(long address)
Returns a newDBDATETIMEinstance for the specified memory address.
-
createSafe
@Nullable public static DBDATETIME createSafe(long address)
-
malloc
public static DBDATETIME.Buffer malloc(int capacity)
Returns a newDBDATETIME.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static DBDATETIME.Buffer calloc(int capacity)
Returns a newDBDATETIME.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static DBDATETIME.Buffer create(int capacity)
Returns a newDBDATETIME.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static DBDATETIME.Buffer create(long address, int capacity)
Create aDBDATETIME.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static DBDATETIME.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static DBDATETIME mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DBDATETIME callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DBDATETIME mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DBDATETIME callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DBDATETIME.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static DBDATETIME.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static DBDATETIME.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 DBDATETIME.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static DBDATETIME malloc(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIMEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static DBDATETIME calloc(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIMEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static DBDATETIME.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIME.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static DBDATETIME.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIME.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndtdays
public static int ndtdays(long struct)
Unsafe version ofdtdays().
-
ndttime
public static int ndttime(long struct)
Unsafe version ofdttime().
-
ndtdays
public static void ndtdays(long struct, int value)Unsafe version ofdtdays.
-
ndttime
public static void ndttime(long struct, int value)Unsafe version ofdttime.
-
-