|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.common.nio.AbstractBuffer<B>
com.jogamp.common.nio.AbstractLongBuffer<B>
public abstract class AbstractLongBuffer<B extends 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
|
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()
|
B |
put(B src)
Relative bulk get method. |
abstract B |
put(int index,
long value)
Absolute put method. |
B |
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
Constructor Detail |
---|
protected AbstractLongBuffer(ByteBuffer bb, int elementSize)
Method Detail |
---|
public final boolean hasArray()
hasArray
in interface NativeBuffer<B extends AbstractLongBuffer>
hasArray
in class AbstractBuffer<B extends AbstractLongBuffer>
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 B put(int index, long value)
public final B 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 B put(B 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 |