Package org.lwjgl.odbc
Class SQL_NUMERIC_STRUCT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SQL_NUMERIC_STRUCT,SQL_NUMERIC_STRUCT.Buffer>
-
- org.lwjgl.odbc.SQL_NUMERIC_STRUCT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<SQL_NUMERIC_STRUCT>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- SQL_NUMERIC_STRUCT
public static class SQL_NUMERIC_STRUCT.Buffer extends org.lwjgl.system.StructBuffer<SQL_NUMERIC_STRUCT,SQL_NUMERIC_STRUCT.Buffer> implements org.lwjgl.system.NativeResource
An array ofSQL_NUMERIC_STRUCT
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
precision()
Returns the value of theprecision
field.SQL_NUMERIC_STRUCT.Buffer
precision(byte value)
Sets the specified value to theprecision
field.byte
scale()
Returns the value of thescale
field.SQL_NUMERIC_STRUCT.Buffer
scale(byte value)
Sets the specified value to thescale
field.byte
sign()
Returns the value of thesign
field.SQL_NUMERIC_STRUCT.Buffer
sign(byte value)
Sets the specified value to thesign
field.java.nio.ByteBuffer
val()
Returns aByteBuffer
view of theval
field.byte
val(int index)
Returns the value at the specified index of theval
field.SQL_NUMERIC_STRUCT.Buffer
val(int index, byte value)
Sets the specified value at the specified index of theval
field.SQL_NUMERIC_STRUCT.Buffer
val(java.nio.ByteBuffer value)
Copies the specifiedByteBuffer
to theval
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_NUMERIC_STRUCT.Buffer
instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided bySQL_NUMERIC_STRUCT.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
precision
public byte precision()
Returns the value of theprecision
field.
-
scale
public byte scale()
Returns the value of thescale
field.
-
sign
public byte sign()
Returns the value of thesign
field.
-
val
public java.nio.ByteBuffer val()
Returns aByteBuffer
view of theval
field.
-
val
public byte val(int index)
Returns the value at the specified index of theval
field.
-
precision
public SQL_NUMERIC_STRUCT.Buffer precision(byte value)
Sets the specified value to theprecision
field.
-
scale
public SQL_NUMERIC_STRUCT.Buffer scale(byte value)
Sets the specified value to thescale
field.
-
sign
public SQL_NUMERIC_STRUCT.Buffer sign(byte value)
Sets the specified value to thesign
field.
-
val
public SQL_NUMERIC_STRUCT.Buffer val(java.nio.ByteBuffer value)
Copies the specifiedByteBuffer
to theval
field.
-
val
public SQL_NUMERIC_STRUCT.Buffer val(int index, byte value)
Sets the specified value at the specified index of theval
field.
-
-