|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.common.nio.AbstractBuffer
com.jogamp.common.nio.AbstractLongBuffer
public abstract class AbstractLongBuffer
Hardware independent container for native pointer arrays. The native values (NIO direct ByteBuffer) might be 32bit or 64bit wide, depending of the CPU pointer width.
Field Summary | |
---|---|
protected long[] |
backup
|
protected HashMap |
dataMap
|
Fields inherited from class com.jogamp.common.nio.AbstractBuffer |
---|
bb, capacity, position |
Constructor Summary | |
---|---|
protected |
AbstractLongBuffer(ByteBuffer bb,
int elementSize)
|
Method Summary | |
---|---|
long[] |
array()
|
long |
get()
Relative get method. |
abstract long |
get(int idx)
Absolute get method. |
AbstractLongBuffer |
get(long[] dest,
int offset,
int length)
Relative bulk get method. |
boolean |
hasArray()
|
AbstractLongBuffer |
put(AbstractLongBuffer src)
Relative bulk get method. |
abstract AbstractLongBuffer |
put(int index,
long value)
Absolute put method. |
AbstractLongBuffer |
put(long value)
Relative put method. |
AbstractLongBuffer |
put(long[] src,
int offset,
int length)
Relative bulk put method. |
Methods inherited from class com.jogamp.common.nio.AbstractBuffer |
---|
arrayOffset, capacity, getBuffer, hasRemaining, isDirect, limit, position, position, remaining, rewind, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long[] backup
protected HashMap dataMap
Constructor Detail |
---|
protected AbstractLongBuffer(ByteBuffer bb, int elementSize)
Method Detail |
---|
public final boolean hasArray()
hasArray
in interface NativeBuffer
hasArray
in class AbstractBuffer
public final long[] array()
public abstract long get(int idx)
public final long get()
public final AbstractLongBuffer get(long[] dest, int offset, int length)
[ position .. position+length [
to the destination array [ dest[offset] .. dest[offset+length] [
and increment the position by length
.
public abstract AbstractLongBuffer put(int index, long value)
public final AbstractLongBuffer put(long value)
public final AbstractLongBuffer put(long[] src, int offset, int length)
[ src[offset] .. src[offset+length] [
at the current position and increment the position by length
.
public AbstractLongBuffer put(AbstractLongBuffer src)
src[position .. capacity] [
to this buffer and increment the position by capacity-position
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |