Package org.lwjgl.odbc
Class DBDATETIM4
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct DBDATETIM4 {
USHORT numdays;
USHORT nummins;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDBDATETIM4(ByteBuffer container) Creates aDBDATETIM4instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DBDATETIM4calloc()Returns a newDBDATETIM4instance allocated withmemCalloc.static DBDATETIM4.Buffercalloc(int capacity) Returns a newDBDATETIM4.Bufferinstance allocated withmemCalloc.static DBDATETIM4.Buffercalloc(int capacity, MemoryStack stack) Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DBDATETIM4calloc(MemoryStack stack) Returns a newDBDATETIM4instance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 @Nullable DBDATETIM4createSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStack.static DBDATETIM4malloc(MemoryStack stack) Returns a newDBDATETIM4instance allocated on the specifiedMemoryStack.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()numdays(short value) Sets the specified value to thenumdaysfield.shortnummins()nummins(short value) Sets the specified value to thenumminsfield.set(short numdays, short nummins) Initializes this struct with the specified values.set(DBDATETIM4 src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<DBDATETIM4>
-
numdays
public short numdays()- Returns:
- the value of the
numdaysfield.
-
nummins
public short nummins()- Returns:
- the value of the
numminsfield.
-
numdays
Sets the specified value to thenumdaysfield. -
nummins
Sets the specified value to thenumminsfield. -
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 newDBDATETIM4instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newDBDATETIM4instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newDBDATETIM4instance allocated withBufferUtils. -
create
Returns a newDBDATETIM4instance for the specified memory address. -
createSafe
-
malloc
Returns a newDBDATETIM4.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newDBDATETIM4.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newDBDATETIM4.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aDBDATETIM4.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newDBDATETIM4instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newDBDATETIM4instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newDBDATETIM4.Bufferinstance allocated on the specifiedMemoryStackand 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.
-