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_STRUCTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byteprecision()SQL_NUMERIC_STRUCT.Bufferprecision(byte value)Sets the specified value to theprecisionfield.bytescale()SQL_NUMERIC_STRUCT.Bufferscale(byte value)Sets the specified value to thescalefield.bytesign()SQL_NUMERIC_STRUCT.Buffersign(byte value)Sets the specified value to thesignfield.java.nio.ByteBufferval()byteval(int index)SQL_NUMERIC_STRUCT.Bufferval(int index, byte value)Sets the specified value at the specified index of thevalfield.SQL_NUMERIC_STRUCT.Bufferval(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thevalfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_NUMERIC_STRUCT.Bufferinstance 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 the
precisionfield.
-
scale
public byte scale()
- Returns:
- the value of the
scalefield.
-
sign
public byte sign()
- Returns:
- the value of the
signfield.
-
val
public java.nio.ByteBuffer val()
- Returns:
- a
ByteBufferview of thevalfield.
-
val
public byte val(int index)
- Returns:
- the value at the specified index of the
valfield.
-
precision
public SQL_NUMERIC_STRUCT.Buffer precision(byte value)
Sets the specified value to theprecisionfield.
-
scale
public SQL_NUMERIC_STRUCT.Buffer scale(byte value)
Sets the specified value to thescalefield.
-
sign
public SQL_NUMERIC_STRUCT.Buffer sign(byte value)
Sets the specified value to thesignfield.
-
val
public SQL_NUMERIC_STRUCT.Buffer val(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thevalfield.
-
val
public SQL_NUMERIC_STRUCT.Buffer val(int index, byte value)
Sets the specified value at the specified index of thevalfield.
-
-