public abstract class CLTLInfoAccessor extends Object implements CLInfoAccessor
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<ByteBuffer> |
localBB |
protected static ThreadLocal<PointerBuffer> |
localNSB |
| Constructor and Description |
|---|
CLTLInfoAccessor() |
| Modifier and Type | Method and Description |
|---|---|
protected ByteBuffer |
getBB(int minCapacity) |
protected abstract int |
getInfo(int name,
long valueSize,
Buffer value,
PointerBuffer valueSizeRet) |
int[] |
getInts(int key,
int n) |
long |
getLong(int key)
Returns the long value for the given key.
|
protected PointerBuffer |
getNSB() |
String |
getString(int key)
Returns the String value for the given key.
|
long |
getUInt32Long(int key)
Returns the
uint32_t value for the given key,
reinterpreted as a long value. |
protected static final ThreadLocal<ByteBuffer> localBB
protected static final ThreadLocal<PointerBuffer> localNSB
public final long getUInt32Long(int key)
CLInfoAccessoruint32_t value for the given key,
reinterpreted as a long value.getUInt32Long in interface CLInfoAccessorpublic final long getLong(int key)
CLInfoAccessorgetLong in interface CLInfoAccessorpublic final String getString(int key)
CLInfoAccessorgetString in interface CLInfoAccessorpublic final int[] getInts(int key,
int n)
getInts in interface CLInfoAccessorprotected ByteBuffer getBB(int minCapacity)
protected PointerBuffer getNSB()
protected abstract int getInfo(int name,
long valueSize,
Buffer value,
PointerBuffer valueSizeRet)