Top Description Methods
com.jogamp.common.nio

public Interface NativeBuffer<B extends NativeBuffer>

Known Direct Implementers
com.jogamp.common.nio.AbstractBuffer
Annotations
@SuppressWarnings:rawtypes
Imports
java.nio.Buffer

Hardware independent container for various kinds of buffers.
Authors
Sven Gothel, Michael Bien

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the primitive backup array of the buffer if hasArray() is true, otherwise it throws java.lang.UnsupportedOperationException. The returned primitive array maybe of type int[] or long[], etc ..
array
()

public int

Returns:

the array offset of the optional primitive backup array of the buffer if hasArray() is true, otherwise 0.
arrayOffset
()

public int
public int
public long
get()

public long
get(int idx)

public Buffer
public boolean

Returns:

true if this buffer has a primitive backup array, otherwise false
hasArray
()

public boolean
public boolean
public int
public int
public B
position(int newPos)

public B
put(int index, long value)

public B
put(long value)

public B
put(B src)

public int
public B

Method Detail

arrayback to summary
public Object array() throws UnsupportedOperationException
Returns:Object

the primitive backup array of the buffer if hasArray() is true, otherwise it throws java.lang.UnsupportedOperationException. The returned primitive array maybe of type int[] or long[], etc ..

Exceptions
UnsupportedOperationException:
if this object has no backup array
See Also
hasArray()
arrayOffsetback to summary
public int arrayOffset()
Returns:int

the array offset of the optional primitive backup array of the buffer if hasArray() is true, otherwise 0.

capacityback to summary
public int capacity()
elementSizeback to summary
public int elementSize()
getback to summary
public long get()
getback to summary
public long get(int idx)
getBufferback to summary
public Buffer getBuffer()
hasArrayback to summary
public boolean hasArray()
Returns:boolean

true if this buffer has a primitive backup array, otherwise false

hasRemainingback to summary
public boolean hasRemaining()
isDirectback to summary
public boolean isDirect()
limitback to summary
public int limit()
positionback to summary
public int position()
positionback to summary
public B position(int newPos)
putback to summary
public B put(int index, long value)
putback to summary
public B put(long value)
putback to summary
public B put(B src)
remainingback to summary
public int remaining()
rewindback to summary
public B rewind()