Package org.lwjgl.odbc
Class DBDATETIM4
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.DBDATETIM4
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class DBDATETIM4 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct DBDATETIM4 { USHORT numdays; USHORT nummins; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DBDATETIM4.Buffer
An array ofDBDATETIM4
structs.
-
Constructor Summary
Constructors Constructor Description DBDATETIM4(java.nio.ByteBuffer container)
Creates aDBDATETIM4
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DBDATETIM4
calloc()
Returns a newDBDATETIM4
instance allocated withmemCalloc
.static DBDATETIM4.Buffer
calloc(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated withmemCalloc
.static DBDATETIM4
callocStack()
Returns a newDBDATETIM4
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static DBDATETIM4.Buffer
callocStack(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static DBDATETIM4.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DBDATETIM4
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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
mallocStack()
Returns a newDBDATETIM4
instance allocated on the thread-localMemoryStack
.static DBDATETIM4.Buffer
mallocStack(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated on the thread-localMemoryStack
.static DBDATETIM4.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
.static DBDATETIM4
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4
instance allocated on the specifiedMemoryStack
.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()
Returns the value of thenumdays
field.DBDATETIM4
numdays(short value)
Sets the specified value to thenumdays
field.short
nummins()
Returns the value of thenummins
field.DBDATETIM4
nummins(short value)
Sets the specified value to thenummins
field.DBDATETIM4
set(short numdays, short nummins)
Initializes this struct with the specified values.DBDATETIM4
set(DBDATETIM4 src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
DBDATETIM4
public DBDATETIM4(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
numdays
public short numdays()
Returns the value of thenumdays
field.
-
nummins
public short nummins()
Returns the value of thenummins
field.
-
numdays
public DBDATETIM4 numdays(short value)
Sets the specified value to thenumdays
field.
-
nummins
public DBDATETIM4 nummins(short value)
Sets the specified value to thenummins
field.
-
set
public DBDATETIM4 set(short numdays, short nummins)
Initializes this struct with the specified values.
-
set
public DBDATETIM4 set(DBDATETIM4 src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static DBDATETIM4 malloc()
Returns a newDBDATETIM4
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static DBDATETIM4 calloc()
Returns a newDBDATETIM4
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static DBDATETIM4 create()
Returns a newDBDATETIM4
instance allocated withBufferUtils
.
-
create
public static DBDATETIM4 create(long address)
Returns a newDBDATETIM4
instance for the specified memory address.
-
createSafe
@Nullable public static DBDATETIM4 createSafe(long address)
-
malloc
public static DBDATETIM4.Buffer malloc(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static DBDATETIM4.Buffer calloc(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static DBDATETIM4.Buffer create(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static DBDATETIM4.Buffer create(long address, int capacity)
Create aDBDATETIM4.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static DBDATETIM4.Buffer createSafe(long address, int capacity)
-
mallocStack
public static DBDATETIM4 mallocStack()
Returns a newDBDATETIM4
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static DBDATETIM4 callocStack()
Returns a newDBDATETIM4
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static DBDATETIM4 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static DBDATETIM4 callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static DBDATETIM4.Buffer mallocStack(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static DBDATETIM4.Buffer callocStack(int capacity)
Returns a newDBDATETIM4.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static DBDATETIM4.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static DBDATETIM4.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-