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