public class SQL_SS_TIMESTAMPOFFSET_STRUCT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer
An array of
SQL_SS_TIMESTAMPOFFSET_STRUCT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DAY
The struct member offsets.
|
static int |
FRACTION
The struct member offsets.
|
static int |
HOUR
The struct member offsets.
|
static int |
MINUTE
The struct member offsets.
|
static int |
MONTH
The struct member offsets.
|
static int |
SECOND
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TIMEZONE_HOUR
The struct member offsets.
|
static int |
TIMEZONE_MINUTE
The struct member offsets.
|
static int |
YEAR
The struct member offsets.
|
| Constructor and Description |
|---|
SQL_SS_TIMESTAMPOFFSET_STRUCT(java.nio.ByteBuffer container)
Creates a
SQL_SS_TIMESTAMPOFFSET_STRUCT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
calloc()
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with memCalloc. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
calloc(int capacity)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated with memCalloc. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
callocStack()
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
callocStack(int capacity)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
create()
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with BufferUtils. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
create(int capacity)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated with BufferUtils. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
create(long address)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance for the specified memory address. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
create(long address,
int capacity)
Create a
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance at the specified memory. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
createSafe(long address)
|
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
createSafe(long address,
int capacity)
|
short |
day()
Returns the value of the
day field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
day(short value)
Sets the specified value to the
day field. |
int |
fraction()
Returns the value of the
fraction field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
fraction(int value)
Sets the specified value to the
fraction field. |
short |
hour()
Returns the value of the
hour field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
hour(short value)
Sets the specified value to the
hour field. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
malloc()
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with memAlloc. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
malloc(int capacity)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated with memAlloc. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
mallocStack()
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the thread-local MemoryStack. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
mallocStack(int capacity)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the thread-local MemoryStack. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the specified MemoryStack. |
static SQL_SS_TIMESTAMPOFFSET_STRUCT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the specified MemoryStack. |
short |
minute()
Returns the value of the
minute field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
minute(short value)
Sets the specified value to the
minute field. |
short |
month()
Returns the value of the
month field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
month(short value)
Sets the specified value to the
month field. |
static short |
nday(long struct)
Unsafe version of
day(). |
static void |
nday(long struct,
short value)
Unsafe version of
day. |
static int |
nfraction(long struct)
Unsafe version of
fraction(). |
static void |
nfraction(long struct,
int value)
Unsafe version of
fraction. |
static short |
nhour(long struct)
Unsafe version of
hour(). |
static void |
nhour(long struct,
short value)
Unsafe version of
hour. |
static short |
nminute(long struct)
Unsafe version of
minute(). |
static void |
nminute(long struct,
short value)
Unsafe version of
minute. |
static short |
nmonth(long struct)
Unsafe version of
month(). |
static void |
nmonth(long struct,
short value)
Unsafe version of
month. |
static short |
nsecond(long struct)
Unsafe version of
second(). |
static void |
nsecond(long struct,
short value)
Unsafe version of
second. |
static short |
ntimezone_hour(long struct)
Unsafe version of
timezone_hour(). |
static void |
ntimezone_hour(long struct,
short value)
Unsafe version of
timezone_hour. |
static short |
ntimezone_minute(long struct)
Unsafe version of
timezone_minute(). |
static void |
ntimezone_minute(long struct,
short value)
Unsafe version of
timezone_minute. |
static short |
nyear(long struct)
Unsafe version of
year(). |
static void |
nyear(long struct,
short value)
Unsafe version of
year. |
short |
second()
Returns the value of the
second field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
second(short value)
Sets the specified value to the
second field. |
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.
|
SQL_SS_TIMESTAMPOFFSET_STRUCT |
set(SQL_SS_TIMESTAMPOFFSET_STRUCT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
short |
timezone_hour()
Returns the value of the
timezone_hour field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
timezone_hour(short value)
Sets the specified value to the
timezone_hour field. |
short |
timezone_minute()
Returns the value of the
timezone_minute field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
timezone_minute(short value)
Sets the specified value to the
timezone_minute field. |
short |
year()
Returns the value of the
year field. |
SQL_SS_TIMESTAMPOFFSET_STRUCT |
year(short value)
Sets the specified value to the
year field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int YEAR
public static final int MONTH
public static final int DAY
public static final int HOUR
public static final int MINUTE
public static final int SECOND
public static final int FRACTION
public static final int TIMEZONE_HOUR
public static final int TIMEZONE_MINUTE
public SQL_SS_TIMESTAMPOFFSET_STRUCT(java.nio.ByteBuffer container)
SQL_SS_TIMESTAMPOFFSET_STRUCT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic short year()
year field.public short month()
month field.public short day()
day field.public short hour()
hour field.public short minute()
minute field.public short second()
second field.public int fraction()
fraction field.public short timezone_hour()
timezone_hour field.public short timezone_minute()
timezone_minute field.public SQL_SS_TIMESTAMPOFFSET_STRUCT year(short value)
year field.public SQL_SS_TIMESTAMPOFFSET_STRUCT month(short value)
month field.public SQL_SS_TIMESTAMPOFFSET_STRUCT day(short value)
day field.public SQL_SS_TIMESTAMPOFFSET_STRUCT hour(short value)
hour field.public SQL_SS_TIMESTAMPOFFSET_STRUCT minute(short value)
minute field.public SQL_SS_TIMESTAMPOFFSET_STRUCT second(short value)
second field.public SQL_SS_TIMESTAMPOFFSET_STRUCT fraction(int value)
fraction field.public SQL_SS_TIMESTAMPOFFSET_STRUCT timezone_hour(short value)
timezone_hour field.public SQL_SS_TIMESTAMPOFFSET_STRUCT timezone_minute(short value)
timezone_minute field.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)
public SQL_SS_TIMESTAMPOFFSET_STRUCT set(SQL_SS_TIMESTAMPOFFSET_STRUCT src)
src - the source structpublic static SQL_SS_TIMESTAMPOFFSET_STRUCT malloc()
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with memAlloc. The instance must be explicitly freed.public static SQL_SS_TIMESTAMPOFFSET_STRUCT calloc()
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with memCalloc. The instance must be explicitly freed.public static SQL_SS_TIMESTAMPOFFSET_STRUCT create()
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with BufferUtils.public static SQL_SS_TIMESTAMPOFFSET_STRUCT create(long address)
SQL_SS_TIMESTAMPOFFSET_STRUCT instance for the specified memory address.@Nullable public static SQL_SS_TIMESTAMPOFFSET_STRUCT createSafe(long address)
public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer malloc(int capacity)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer calloc(int capacity)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer create(int capacity)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer create(long address, int capacity)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer createSafe(long address, int capacity)
public static SQL_SS_TIMESTAMPOFFSET_STRUCT mallocStack()
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the thread-local MemoryStack.public static SQL_SS_TIMESTAMPOFFSET_STRUCT callocStack()
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SQL_SS_TIMESTAMPOFFSET_STRUCT mallocStack(org.lwjgl.system.MemoryStack stack)
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SQL_SS_TIMESTAMPOFFSET_STRUCT callocStack(org.lwjgl.system.MemoryStack stack)
SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer mallocStack(int capacity)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer callocStack(int capacity)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static short nyear(long struct)
year().public static short nmonth(long struct)
month().public static short nday(long struct)
day().public static short nhour(long struct)
hour().public static short nminute(long struct)
minute().public static short nsecond(long struct)
second().public static int nfraction(long struct)
fraction().public static short ntimezone_hour(long struct)
timezone_hour().public static short ntimezone_minute(long struct)
timezone_minute().public static void nyear(long struct,
short value)
year.public static void nmonth(long struct,
short value)
month.public static void nday(long struct,
short value)
day.public static void nhour(long struct,
short value)
hour.public static void nminute(long struct,
short value)
minute.public static void nsecond(long struct,
short value)
second.public static void nfraction(long struct,
int value)
fraction.public static void ntimezone_hour(long struct,
short value)
timezone_hour.public static void ntimezone_minute(long struct,
short value)
timezone_minute.Copyright LWJGL. All Rights Reserved. License terms.