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)
CLInfoAccessor
uint32_t
value for the given key,
reinterpreted as a long
value.getUInt32Long
in interface CLInfoAccessor
public final long getLong(int key)
CLInfoAccessor
getLong
in interface CLInfoAccessor
public final String getString(int key)
CLInfoAccessor
getString
in interface CLInfoAccessor
public final int[] getInts(int key, int n)
getInts
in interface CLInfoAccessor
protected ByteBuffer getBB(int minCapacity)
protected PointerBuffer getNSB()
protected abstract int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet)