Package org.lwjgl.odbc
Class SQL_YEAR_MONTH_STRUCT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct SQL_YEAR_MONTH_STRUCT {
SQLUINTEGER year;
SQLUINTEGER month;
}
-
Nested Class Summary
Nested 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
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.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
ConstructorDescriptionSQL_YEAR_MONTH_STRUCT
(ByteBuffer container) Creates aSQL_YEAR_MONTH_STRUCT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SQL_YEAR_MONTH_STRUCT
calloc()
Returns a newSQL_YEAR_MONTH_STRUCT
instance allocated withmemCalloc
.static SQL_YEAR_MONTH_STRUCT.Buffer
calloc
(int capacity) Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated withmemCalloc
.static SQL_YEAR_MONTH_STRUCT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SQL_YEAR_MONTH_STRUCT
calloc
(MemoryStack stack) Returns a newSQL_YEAR_MONTH_STRUCT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SQL_YEAR_MONTH_STRUCT
Deprecated.static SQL_YEAR_MONTH_STRUCT.Buffer
callocStack
(int capacity) Deprecated.static SQL_YEAR_MONTH_STRUCT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static SQL_YEAR_MONTH_STRUCT
callocStack
(MemoryStack stack) Deprecated.static SQL_YEAR_MONTH_STRUCT
create()
Returns a newSQL_YEAR_MONTH_STRUCT
instance allocated withBufferUtils
.static SQL_YEAR_MONTH_STRUCT.Buffer
create
(int capacity) Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated withBufferUtils
.static SQL_YEAR_MONTH_STRUCT
create
(long address) Returns a newSQL_YEAR_MONTH_STRUCT
instance for the specified memory address.static SQL_YEAR_MONTH_STRUCT.Buffer
create
(long address, int capacity) Create aSQL_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 newSQL_YEAR_MONTH_STRUCT
instance allocated withmemAlloc
.static SQL_YEAR_MONTH_STRUCT.Buffer
malloc
(int capacity) Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated withmemAlloc
.static SQL_YEAR_MONTH_STRUCT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated on the specifiedMemoryStack
.static SQL_YEAR_MONTH_STRUCT
malloc
(MemoryStack stack) Returns a newSQL_YEAR_MONTH_STRUCT
instance allocated on the specifiedMemoryStack
.static SQL_YEAR_MONTH_STRUCT
Deprecated.static SQL_YEAR_MONTH_STRUCT.Buffer
mallocStack
(int capacity) Deprecated.static SQL_YEAR_MONTH_STRUCT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static SQL_YEAR_MONTH_STRUCT
mallocStack
(MemoryStack stack) Deprecated.int
month()
month
(int value) Sets the specified value to themonth
field.static int
nmonth
(long struct) Unsafe version ofmonth()
.static void
nmonth
(long struct, int value) Unsafe version ofmonth
.static int
nyear
(long struct) Unsafe version ofyear()
.static void
nyear
(long struct, int value) Unsafe version ofyear
.set
(int year, int month) Initializes this struct with the specified values.set
(SQL_YEAR_MONTH_STRUCT src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
year()
year
(int 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.
-
-
Constructor Details
-
SQL_YEAR_MONTH_STRUCT
Creates aSQL_YEAR_MONTH_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_YEAR_MONTH_STRUCT>
-
year
public int year()- Returns:
- the value of the
year
field.
-
month
public int month()- Returns:
- the value of the
month
field.
-
year
Sets the specified value to theyear
field. -
month
Sets the specified value to themonth
field. -
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_YEAR_MONTH_STRUCT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSQL_YEAR_MONTH_STRUCT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSQL_YEAR_MONTH_STRUCT
instance allocated withBufferUtils
. -
create
Returns a newSQL_YEAR_MONTH_STRUCT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSQL_YEAR_MONTH_STRUCT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSQL_YEAR_MONTH_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.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_YEAR_MONTH_STRUCT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSQL_YEAR_MONTH_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_YEAR_MONTH_STRUCT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSQL_YEAR_MONTH_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 int nyear(long struct) Unsafe version ofyear()
. -
nmonth
public static int nmonth(long struct) Unsafe version ofmonth()
. -
nyear
public static void nyear(long struct, int value) Unsafe version ofyear
. -
nmonth
public static void nmonth(long struct, int value) Unsafe version ofmonth
.
-