Package org.lwjgl.odbc
Class DBDATETIM4
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct DBDATETIM4 {
USHORT numdays;
USHORT nummins;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionDBDATETIM4
(ByteBuffer container) Creates aDBDATETIM4
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic DBDATETIM4
calloc()
Returns a newDBDATETIM4
instance allocated withmemCalloc
.static DBDATETIM4.Buffer
calloc
(int capacity) Returns a newDBDATETIM4.Buffer
instance allocated withmemCalloc
.static DBDATETIM4.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DBDATETIM4
calloc
(MemoryStack stack) Returns a newDBDATETIM4
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DBDATETIM4
Deprecated.static DBDATETIM4.Buffer
callocStack
(int capacity) Deprecated.static DBDATETIM4.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static DBDATETIM4
callocStack
(MemoryStack stack) Deprecated.static DBDATETIM4
create()
Returns a newDBDATETIM4
instance allocated withBufferUtils
.static DBDATETIM4.Buffer
create
(int capacity) Returns a newDBDATETIM4.Buffer
instance allocated withBufferUtils
.static DBDATETIM4
create
(long address) Returns a newDBDATETIM4
instance for the specified memory address.static DBDATETIM4.Buffer
create
(long address, int capacity) Create aDBDATETIM4.Buffer
instance at the specified memory.static DBDATETIM4
createSafe
(long address) static DBDATETIM4.Buffer
createSafe
(long address, int capacity) static DBDATETIM4
malloc()
Returns a newDBDATETIM4
instance allocated withmemAlloc
.static DBDATETIM4.Buffer
malloc
(int capacity) Returns a newDBDATETIM4.Buffer
instance allocated withmemAlloc
.static DBDATETIM4.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
.static DBDATETIM4
malloc
(MemoryStack stack) Returns a newDBDATETIM4
instance allocated on the specifiedMemoryStack
.static DBDATETIM4
Deprecated.static DBDATETIM4.Buffer
mallocStack
(int capacity) Deprecated.static DBDATETIM4.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static DBDATETIM4
mallocStack
(MemoryStack stack) Deprecated.static short
nnumdays
(long struct) Unsafe version ofnumdays()
.static void
nnumdays
(long struct, short value) Unsafe version ofnumdays
.static short
nnummins
(long struct) Unsafe version ofnummins()
.static void
nnummins
(long struct, short value) Unsafe version ofnummins
.short
numdays()
numdays
(short value) Sets the specified value to thenumdays
field.short
nummins()
nummins
(short value) Sets the specified value to thenummins
field.set
(short numdays, short nummins) Initializes this struct with the specified values.set
(DBDATETIM4 src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
NUMDAYS
public static final int NUMDAYSThe struct member offsets. -
NUMMINS
public static final int NUMMINSThe struct member offsets.
-
-
Constructor Details
-
DBDATETIM4
Creates aDBDATETIM4
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<DBDATETIM4>
-
numdays
public short numdays()- Returns:
- the value of the
numdays
field.
-
nummins
public short nummins()- Returns:
- the value of the
nummins
field.
-
numdays
Sets the specified value to thenumdays
field. -
nummins
Sets the specified value to thenummins
field. -
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 newDBDATETIM4
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newDBDATETIM4
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newDBDATETIM4
instance allocated withBufferUtils
. -
create
Returns a newDBDATETIM4
instance for the specified memory address. -
createSafe
-
malloc
Returns a newDBDATETIM4.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newDBDATETIM4.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newDBDATETIM4.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aDBDATETIM4.Buffer
instance 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 newDBDATETIM4
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newDBDATETIM4
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nnumdays
public static short nnumdays(long struct) Unsafe version ofnumdays()
. -
nnummins
public static short nnummins(long struct) Unsafe version ofnummins()
. -
nnumdays
public static void nnumdays(long struct, short value) Unsafe version ofnumdays
. -
nnummins
public static void nnummins(long struct, short value) Unsafe version ofnummins
.
-