Package org.lwjgl.odbc
Class SQL_DAY_SECOND_STRUCT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct SQL_DAY_SECOND_STRUCT {
SQLUINTEGER day;
SQLUINTEGER hour;
SQLUINTEGER minute;
SQLUINTEGER second;
SQLUINTEGER fraction;
}-
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 member offsets.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
ConstructorsConstructorDescriptionSQL_DAY_SECOND_STRUCT(ByteBuffer container) Creates aSQL_DAY_SECOND_STRUCTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SQL_DAY_SECOND_STRUCTcalloc()Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withmemCalloc.static SQL_DAY_SECOND_STRUCT.Buffercalloc(int capacity) Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemCalloc.static SQL_DAY_SECOND_STRUCT.Buffercalloc(int capacity, MemoryStack stack) Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_DAY_SECOND_STRUCTcalloc(MemoryStack stack) Returns a newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_DAY_SECOND_STRUCTDeprecated.static SQL_DAY_SECOND_STRUCT.BuffercallocStack(int capacity) Deprecated.static SQL_DAY_SECOND_STRUCT.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static SQL_DAY_SECOND_STRUCTcallocStack(MemoryStack stack) Deprecated.static SQL_DAY_SECOND_STRUCTcreate()Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withBufferUtils.static SQL_DAY_SECOND_STRUCT.Buffercreate(int capacity) Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withBufferUtils.static SQL_DAY_SECOND_STRUCTcreate(long address) Returns a newSQL_DAY_SECOND_STRUCTinstance for the specified memory address.static SQL_DAY_SECOND_STRUCT.Buffercreate(long address, int capacity) Create aSQL_DAY_SECOND_STRUCT.Bufferinstance at the specified memory.static @Nullable SQL_DAY_SECOND_STRUCTcreateSafe(long address) static @Nullable SQL_DAY_SECOND_STRUCT.BuffercreateSafe(long address, int capacity) intday()day(int value) Sets the specified value to thedayfield.intfraction()fraction(int value) Sets the specified value to thefractionfield.inthour()hour(int value) Sets the specified value to thehourfield.static SQL_DAY_SECOND_STRUCTmalloc()Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withmemAlloc.static SQL_DAY_SECOND_STRUCT.Buffermalloc(int capacity) Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemAlloc.static SQL_DAY_SECOND_STRUCT.Buffermalloc(int capacity, MemoryStack stack) Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.static SQL_DAY_SECOND_STRUCTmalloc(MemoryStack stack) Returns a newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStack.static SQL_DAY_SECOND_STRUCTDeprecated.static SQL_DAY_SECOND_STRUCT.BuffermallocStack(int capacity) Deprecated.static SQL_DAY_SECOND_STRUCT.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static SQL_DAY_SECOND_STRUCTmallocStack(MemoryStack stack) Deprecated.intminute()minute(int value) Sets the specified value to theminutefield.static intnday(long struct) Unsafe version ofday().static voidnday(long struct, int value) Unsafe version ofday.static intnfraction(long struct) Unsafe version offraction().static voidnfraction(long struct, int value) Unsafe version offraction.static intnhour(long struct) Unsafe version ofhour().static voidnhour(long struct, int value) Unsafe version ofhour.static intnminute(long struct) Unsafe version ofminute().static voidnminute(long struct, int value) Unsafe version ofminute.static intnsecond(long struct) Unsafe version ofsecond().static voidnsecond(long struct, int value) Unsafe version ofsecond.intsecond()second(int value) Sets the specified value to thesecondfield.set(int day, int hour, int minute, int second, int fraction) Initializes this struct with the specified values.set(SQL_DAY_SECOND_STRUCT 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. -
DAY
public static final int DAYThe struct member offsets. -
HOUR
public static final int HOURThe struct member offsets. -
MINUTE
public static final int MINUTEThe struct member offsets. -
SECOND
public static final int SECONDThe struct member offsets. -
FRACTION
public static final int FRACTIONThe struct member offsets.
-
-
Constructor Details
-
SQL_DAY_SECOND_STRUCT
Creates aSQL_DAY_SECOND_STRUCTinstance 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<SQL_DAY_SECOND_STRUCT>
-
day
public int day()- Returns:
- the value of the
dayfield.
-
hour
public int hour()- Returns:
- the value of the
hourfield.
-
minute
public int minute()- Returns:
- the value of the
minutefield.
-
second
public int second()- Returns:
- the value of the
secondfield.
-
fraction
public int fraction()- Returns:
- the value of the
fractionfield.
-
day
Sets the specified value to thedayfield. -
hour
Sets the specified value to thehourfield. -
minute
Sets the specified value to theminutefield. -
second
Sets the specified value to thesecondfield. -
fraction
Sets the specified value to thefractionfield. -
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 newSQL_DAY_SECOND_STRUCTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withBufferUtils. -
create
Returns a newSQL_DAY_SECOND_STRUCTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSQL_DAY_SECOND_STRUCT.Bufferinstance 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 newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nday
public static int nday(long struct) Unsafe version ofday(). -
nhour
public static int nhour(long struct) Unsafe version ofhour(). -
nminute
public static int nminute(long struct) Unsafe version ofminute(). -
nsecond
public static int nsecond(long struct) Unsafe version ofsecond(). -
nfraction
public static int nfraction(long struct) Unsafe version offraction(). -
nday
public static void nday(long struct, int value) Unsafe version ofday. -
nhour
public static void nhour(long struct, int value) Unsafe version ofhour. -
nminute
public static void nminute(long struct, int value) Unsafe version ofminute. -
nsecond
public static void nsecond(long struct, int value) Unsafe version ofsecond. -
nfraction
public static void nfraction(long struct, int value) Unsafe version offraction.
-