public static interface ComputeContext.Buffer extends ComputeContext.Local
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
asByteBuffer()
Returns this buffer as a
ByteBuffer. |
CharBuffer |
asCharBuffer()
Returns this buffer as a
CharBuffer. |
DoubleBuffer |
asDoubleBuffer()
Returns this buffer as a
DoubleBuffer. |
FloatBuffer |
asFloatBuffer()
Returns this buffer as a
FloatBuffer. |
IntBuffer |
asIntBuffer()
Returns this buffer as a
IntBuffer. |
LongBuffer |
asLongBuffer()
Returns this buffer as a
LongBuffer. |
ShortBuffer |
asShortBuffer()
Returns this buffer as a
ShortBuffer. |
long |
getByteCount()
Returns the size in bytes of this buffer.
|
ComputeContext.Buffer |
readOnly()
Returns an unmodifiable view over this buffer.
|
exportByteBuffer asByteBuffer()
ByteBuffer.CharBuffer asCharBuffer()
CharBuffer.DoubleBuffer asDoubleBuffer()
DoubleBuffer.UnsupportedOperationException - if
ComputeContext.DOUBLE_PRECISION_REQUIRED is
configured to falseFloatBuffer asFloatBuffer()
FloatBuffer.LongBuffer asLongBuffer()
LongBuffer.ShortBuffer asShortBuffer()
ShortBuffer.long getByteCount()
ComputeContext.Buffer readOnly()
Copyright © 2017. All rights reserved.