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