public class DBDATETIME
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct DBDATETIME {
LONG dtdays;
ULONG dttime;
}| Modifier and Type | Class and Description |
|---|---|
static class |
DBDATETIME.Buffer
An array of
DBDATETIME structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DTDAYS
The struct member offsets.
|
static int |
DTTIME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
DBDATETIME(java.nio.ByteBuffer container)
Creates a
DBDATETIME instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static DBDATETIME |
calloc()
Returns a new
DBDATETIME instance allocated with memCalloc. |
static DBDATETIME.Buffer |
calloc(int capacity)
Returns a new
DBDATETIME.Buffer instance allocated with memCalloc. |
static DBDATETIME |
callocStack()
Returns a new
DBDATETIME instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static DBDATETIME.Buffer |
callocStack(int capacity)
Returns a new
DBDATETIME.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static DBDATETIME.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
DBDATETIME.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static DBDATETIME |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
DBDATETIME instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static DBDATETIME |
create()
Returns a new
DBDATETIME instance allocated with BufferUtils. |
static DBDATETIME.Buffer |
create(int capacity)
Returns a new
DBDATETIME.Buffer instance allocated with BufferUtils. |
static DBDATETIME |
create(long address)
Returns a new
DBDATETIME instance for the specified memory address. |
static DBDATETIME.Buffer |
create(long address,
int capacity)
Create a
DBDATETIME.Buffer instance at the specified memory. |
static DBDATETIME |
createSafe(long address)
|
static DBDATETIME.Buffer |
createSafe(long address,
int capacity)
|
int |
dtdays()
Returns the value of the
dtdays field. |
DBDATETIME |
dtdays(int value)
Sets the specified value to the
dtdays field. |
int |
dttime()
Returns the value of the
dttime field. |
DBDATETIME |
dttime(int value)
Sets the specified value to the
dttime field. |
static DBDATETIME |
malloc()
Returns a new
DBDATETIME instance allocated with memAlloc. |
static DBDATETIME.Buffer |
malloc(int capacity)
Returns a new
DBDATETIME.Buffer instance allocated with memAlloc. |
static DBDATETIME |
mallocStack()
Returns a new
DBDATETIME instance allocated on the thread-local MemoryStack. |
static DBDATETIME.Buffer |
mallocStack(int capacity)
Returns a new
DBDATETIME.Buffer instance allocated on the thread-local MemoryStack. |
static DBDATETIME.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
DBDATETIME.Buffer instance allocated on the specified MemoryStack. |
static DBDATETIME |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
DBDATETIME instance allocated on the specified MemoryStack. |
static int |
ndtdays(long struct)
Unsafe version of
dtdays(). |
static void |
ndtdays(long struct,
int value)
Unsafe version of
dtdays. |
static int |
ndttime(long struct)
Unsafe version of
dttime(). |
static void |
ndttime(long struct,
int value)
Unsafe version of
dttime. |
DBDATETIME |
set(DBDATETIME src)
Copies the specified struct data to this struct.
|
DBDATETIME |
set(int dtdays,
int dttime)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DTDAYS
public static final int DTTIME
public DBDATETIME(java.nio.ByteBuffer container)
DBDATETIME instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int dtdays()
dtdays field.public int dttime()
dttime field.public DBDATETIME dtdays(int value)
dtdays field.public DBDATETIME dttime(int value)
dttime field.public DBDATETIME set(int dtdays, int dttime)
public DBDATETIME set(DBDATETIME src)
src - the source structpublic static DBDATETIME malloc()
DBDATETIME instance allocated with memAlloc. The instance must be explicitly freed.public static DBDATETIME calloc()
DBDATETIME instance allocated with memCalloc. The instance must be explicitly freed.public static DBDATETIME create()
DBDATETIME instance allocated with BufferUtils.public static DBDATETIME create(long address)
DBDATETIME instance for the specified memory address.@Nullable public static DBDATETIME createSafe(long address)
public static DBDATETIME.Buffer malloc(int capacity)
DBDATETIME.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static DBDATETIME.Buffer calloc(int capacity)
DBDATETIME.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static DBDATETIME.Buffer create(int capacity)
DBDATETIME.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static DBDATETIME.Buffer create(long address, int capacity)
DBDATETIME.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static DBDATETIME.Buffer createSafe(long address, int capacity)
public static DBDATETIME mallocStack()
DBDATETIME instance allocated on the thread-local MemoryStack.public static DBDATETIME callocStack()
DBDATETIME instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static DBDATETIME mallocStack(org.lwjgl.system.MemoryStack stack)
DBDATETIME instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static DBDATETIME callocStack(org.lwjgl.system.MemoryStack stack)
DBDATETIME instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static DBDATETIME.Buffer mallocStack(int capacity)
DBDATETIME.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static DBDATETIME.Buffer callocStack(int capacity)
DBDATETIME.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static DBDATETIME.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
DBDATETIME.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static DBDATETIME.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
DBDATETIME.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ndtdays(long struct)
dtdays().public static int ndttime(long struct)
dttime().public static void ndtdays(long struct,
int value)
dtdays.public static void ndttime(long struct,
int value)
dttime.Copyright LWJGL. All Rights Reserved. License terms.