Package org.lwjgl.odbc
Class SQL_SS_TIMESTAMPOFFSET_STRUCT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SQL_SS_TIMESTAMPOFFSET_STRUCT
extends Struct<SQL_SS_TIMESTAMPOFFSET_STRUCT>
implements NativeResource
struct SQL_SS_TIMESTAMPOFFSET_STRUCT {
SQLSMALLINT year;
SQLUSMALLINT month;
SQLUSMALLINT day;
SQLUSMALLINT hour;
SQLUSMALLINT minute;
SQLUSMALLINT second;
SQLUINTEGER fraction;
SQLSMALLINT timezone_hour;
SQLSMALLINT timezone_minute;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier 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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSQL_SS_TIMESTAMPOFFSET_STRUCT
(ByteBuffer container) Creates aSQL_SS_TIMESTAMPOFFSET_STRUCT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.callocStack
(MemoryStack stack) Deprecated.create()
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated withBufferUtils
.create
(int capacity) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance for the specified memory address.create
(long address, int capacity) Create aSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance at the specified memory.static @Nullable SQL_SS_TIMESTAMPOFFSET_STRUCT
createSafe
(long address) static @Nullable SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
createSafe
(long address, int capacity) short
day()
day
(short value) Sets the specified value to theday
field.int
fraction()
fraction
(int value) Sets the specified value to thefraction
field.short
hour()
hour
(short value) Sets the specified value to thehour
field.malloc()
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated on the specifiedMemoryStack
.Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.mallocStack
(MemoryStack stack) Deprecated.short
minute()
minute
(short value) Sets the specified value to theminute
field.short
month()
month
(short value) Sets the specified value to themonth
field.static short
nday
(long struct) Unsafe version ofday()
.static void
nday
(long struct, short value) Unsafe version ofday
.static int
nfraction
(long struct) Unsafe version offraction()
.static void
nfraction
(long struct, int value) Unsafe version offraction
.static short
nhour
(long struct) Unsafe version ofhour()
.static void
nhour
(long struct, short value) Unsafe version ofhour
.static short
nminute
(long struct) Unsafe version ofminute()
.static void
nminute
(long struct, short value) Unsafe version ofminute
.static short
nmonth
(long struct) Unsafe version ofmonth()
.static void
nmonth
(long struct, short value) Unsafe version ofmonth
.static short
nsecond
(long struct) Unsafe version ofsecond()
.static void
nsecond
(long struct, short value) Unsafe version ofsecond
.static short
ntimezone_hour
(long struct) Unsafe version oftimezone_hour()
.static void
ntimezone_hour
(long struct, short value) Unsafe version oftimezone_hour
.static short
ntimezone_minute
(long struct) Unsafe version oftimezone_minute()
.static void
ntimezone_minute
(long struct, short value) Unsafe version oftimezone_minute
.static short
nyear
(long struct) Unsafe version ofyear()
.static void
nyear
(long struct, short value) Unsafe version ofyear
.short
second()
second
(short value) Sets the specified value to thesecond
field.set
(short year, short month, short day, short hour, short minute, short second, int fraction, short timezone_hour, short timezone_minute) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.short
timezone_hour
(short value) Sets the specified value to thetimezone_hour
field.short
timezone_minute
(short value) Sets the specified value to thetimezone_minute
field.short
year()
year
(short value) Sets the specified value to theyear
field.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. -
YEAR
public static final int YEARThe struct member offsets. -
MONTH
public static final int MONTHThe struct member offsets. -
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. -
TIMEZONE_HOUR
public static final int TIMEZONE_HOURThe struct member offsets. -
TIMEZONE_MINUTE
public static final int TIMEZONE_MINUTEThe struct member offsets.
-
-
Constructor Details
-
SQL_SS_TIMESTAMPOFFSET_STRUCT
Creates aSQL_SS_TIMESTAMPOFFSET_STRUCT
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<SQL_SS_TIMESTAMPOFFSET_STRUCT>
-
year
public short year()- Returns:
- the value of the
year
field.
-
month
public short month()- Returns:
- the value of the
month
field.
-
day
public short day()- Returns:
- the value of the
day
field.
-
hour
public short hour()- Returns:
- the value of the
hour
field.
-
minute
public short minute()- Returns:
- the value of the
minute
field.
-
second
public short second()- Returns:
- the value of the
second
field.
-
fraction
public int fraction()- Returns:
- the value of the
fraction
field.
-
timezone_hour
public short timezone_hour()- Returns:
- the value of the
timezone_hour
field.
-
timezone_minute
public short timezone_minute()- Returns:
- the value of the
timezone_minute
field.
-
year
Sets the specified value to theyear
field. -
month
Sets the specified value to themonth
field. -
day
Sets the specified value to theday
field. -
hour
Sets the specified value to thehour
field. -
minute
Sets the specified value to theminute
field. -
second
Sets the specified value to thesecond
field. -
fraction
Sets the specified value to thefraction
field. -
timezone_hour
Sets the specified value to thetimezone_hour
field. -
timezone_minute
Sets the specified value to thetimezone_minute
field. -
set
public SQL_SS_TIMESTAMPOFFSET_STRUCT set(short year, short month, short day, short hour, short minute, short second, int fraction, short timezone_hour, short timezone_minute) 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_SS_TIMESTAMPOFFSET_STRUCT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated withBufferUtils
. -
create
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSQL_SS_TIMESTAMPOFFSET_STRUCT.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 public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nyear
public static short nyear(long struct) Unsafe version ofyear()
. -
nmonth
public static short nmonth(long struct) Unsafe version ofmonth()
. -
nday
public static short nday(long struct) Unsafe version ofday()
. -
nhour
public static short nhour(long struct) Unsafe version ofhour()
. -
nminute
public static short nminute(long struct) Unsafe version ofminute()
. -
nsecond
public static short nsecond(long struct) Unsafe version ofsecond()
. -
nfraction
public static int nfraction(long struct) Unsafe version offraction()
. -
ntimezone_hour
public static short ntimezone_hour(long struct) Unsafe version oftimezone_hour()
. -
ntimezone_minute
public static short ntimezone_minute(long struct) Unsafe version oftimezone_minute()
. -
nyear
public static void nyear(long struct, short value) Unsafe version ofyear
. -
nmonth
public static void nmonth(long struct, short value) Unsafe version ofmonth
. -
nday
public static void nday(long struct, short value) Unsafe version ofday
. -
nhour
public static void nhour(long struct, short value) Unsafe version ofhour
. -
nminute
public static void nminute(long struct, short value) Unsafe version ofminute
. -
nsecond
public static void nsecond(long struct, short value) Unsafe version ofsecond
. -
nfraction
public static void nfraction(long struct, int value) Unsafe version offraction
. -
ntimezone_hour
public static void ntimezone_hour(long struct, short value) Unsafe version oftimezone_hour
. -
ntimezone_minute
public static void ntimezone_minute(long struct, short value) Unsafe version oftimezone_minute
.
-