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.NativeResourceLayout
struct DBDATETIM4 { USHORT numdays; USHORT nummins; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDBDATETIM4.BufferAn array ofDBDATETIM4structs.
-
Constructor Summary
Constructors Constructor Description DBDATETIM4(java.nio.ByteBuffer container)Creates aDBDATETIM4instance 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 DBDATETIM4calloc()Returns a newDBDATETIM4instance allocated withmemCalloc.static DBDATETIM4.Buffercalloc(int capacity)Returns a newDBDATETIM4.Bufferinstance allocated withmemCalloc.static DBDATETIM4.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBDATETIM4calloc(org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIM4instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBDATETIM4callocStack()Deprecated.static DBDATETIM4.BuffercallocStack(int capacity)Deprecated.static DBDATETIM4.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static DBDATETIM4callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static DBDATETIM4create()Returns a newDBDATETIM4instance allocated withBufferUtils.static DBDATETIM4.Buffercreate(int capacity)Returns a newDBDATETIM4.Bufferinstance allocated withBufferUtils.static DBDATETIM4create(long address)Returns a newDBDATETIM4instance for the specified memory address.static DBDATETIM4.Buffercreate(long address, int capacity)Create aDBDATETIM4.Bufferinstance at the specified memory.static DBDATETIM4createSafe(long address)static DBDATETIM4.BuffercreateSafe(long address, int capacity)static DBDATETIM4malloc()Returns a newDBDATETIM4instance allocated withmemAlloc.static DBDATETIM4.Buffermalloc(int capacity)Returns a newDBDATETIM4.Bufferinstance allocated withmemAlloc.static DBDATETIM4.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStack.static DBDATETIM4malloc(org.lwjgl.system.MemoryStack stack)Returns a newDBDATETIM4instance allocated on the specifiedMemoryStack.static DBDATETIM4mallocStack()Deprecated.static DBDATETIM4.BuffermallocStack(int capacity)Deprecated.static DBDATETIM4.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static DBDATETIM4mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static shortnnumdays(long struct)Unsafe version ofnumdays().static voidnnumdays(long struct, short value)Unsafe version ofnumdays.static shortnnummins(long struct)Unsafe version ofnummins().static voidnnummins(long struct, short value)Unsafe version ofnummins.shortnumdays()DBDATETIM4numdays(short value)Sets the specified value to thenumdaysfield.shortnummins()DBDATETIM4nummins(short value)Sets the specified value to thenumminsfield.DBDATETIM4set(short numdays, short nummins)Initializes this struct with the specified values.DBDATETIM4set(DBDATETIM4 src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
DBDATETIM4
public DBDATETIM4(java.nio.ByteBuffer container)
Creates aDBDATETIM4instance 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
-
numdays
public short numdays()
- Returns:
- the value of the
numdaysfield.
-
nummins
public short nummins()
- Returns:
- the value of the
numminsfield.
-
numdays
public DBDATETIM4 numdays(short value)
Sets the specified value to thenumdaysfield.
-
nummins
public DBDATETIM4 nummins(short value)
Sets the specified value to thenumminsfield.
-
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 newDBDATETIM4instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static DBDATETIM4 calloc()
Returns a newDBDATETIM4instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static DBDATETIM4 create()
Returns a newDBDATETIM4instance allocated withBufferUtils.
-
create
public static DBDATETIM4 create(long address)
Returns a newDBDATETIM4instance for the specified memory address.
-
createSafe
@Nullable public static DBDATETIM4 createSafe(long address)
-
malloc
public static DBDATETIM4.Buffer malloc(int capacity)
Returns a newDBDATETIM4.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static DBDATETIM4.Buffer calloc(int capacity)
Returns a newDBDATETIM4.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static DBDATETIM4.Buffer create(int capacity)
Returns a newDBDATETIM4.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static DBDATETIM4.Buffer create(long address, int capacity)
Create aDBDATETIM4.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static DBDATETIM4.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static DBDATETIM4 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DBDATETIM4 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DBDATETIM4 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DBDATETIM4 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DBDATETIM4.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static DBDATETIM4.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static DBDATETIM4.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 DBDATETIM4.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static DBDATETIM4 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static DBDATETIM4 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static DBDATETIM4.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static DBDATETIM4.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-