public char[] getOutputDataAsCharArray() { CharPtr ptr = getOutputDataPointer().as(CharPtr.class); return ptr.toCharArray(getOutputDataSize()); } public int[] getOutputDataAsIntArray() {
public int[] getOutputDataAsIntArray() { IntPtr ptr = getOutputDataPointer().as(IntPtr.class); return ptr.toIntArray(getOutputDataSize()); } public long[] getOutputDataAsLongArray() {
public short[] getOutputDataAsShortArray() { ShortPtr ptr = getOutputDataPointer().as(ShortPtr.class); return ptr.toShortArray(getOutputDataSize()); } public char[] getOutputDataAsCharArray() {
public byte[] getOutputDataAsByteArray() { BytePtr ptr = getOutputDataPointer().as(BytePtr.class); return ptr.toByteArray(getOutputDataSize()); } public short[] getOutputDataAsShortArray() {
public long[] getOutputDataAsLongArray() { LongPtr ptr = getOutputDataPointer().as(LongPtr.class); return ptr.toLongArray(getOutputDataSize()); } public float[] getOutputDataAsFloatArray() {
public float[] getOutputDataAsFloatArray() { FloatPtr ptr = getOutputDataPointer().as(FloatPtr.class); return ptr.toFloatArray(getOutputDataSize()); } public double[] getOutputDataAsDoubleArray() {
public double[] getOutputDataAsDoubleArray() { DoublePtr ptr = getOutputDataPointer().as(DoublePtr.class); return ptr.toDoubleArray(getOutputDataSize()); } /*<members>*/
@SuppressWarnings("unchecked") public <T extends Buffer> T getOutputDataAsBuffer(Class<T> bufferType) { VoidPtr ptr = getOutputDataPointer(); if (bufferType == ByteBuffer.class) { return (T) ptr.as(BytePtr.class).asByteBuffer(getOutputDataSize()); } else if (bufferType == CharBuffer.class) { return (T) ptr.as(CharPtr.class).asCharBuffer(getOutputDataSize()); } else if (bufferType == ShortBuffer.class) { return (T) ptr.as(ShortPtr.class).asShortBuffer(getOutputDataSize()); } else if (bufferType == IntBuffer.class) { return (T) ptr.as(IntPtr.class).asIntBuffer(getOutputDataSize()); } else if (bufferType == LongBuffer.class) { return (T) ptr.as(LongPtr.class).asLongBuffer(getOutputDataSize()); } else if (bufferType == FloatBuffer.class) { return (T) ptr.as(FloatPtr.class).asFloatBuffer(getOutputDataSize()); } else if (bufferType == DoubleBuffer.class) { return (T) ptr.as(DoublePtr.class).asDoubleBuffer(getOutputDataSize()); } else { throw new UnsupportedOperationException("Buffer type not supported: " + bufferType); } }
public long[] getOutputDataAsLongArray() { LongPtr ptr = getOutputDataPointer().as(LongPtr.class); return ptr.toLongArray(getOutputDataSize()); } public float[] getOutputDataAsFloatArray() {
public float[] getOutputDataAsFloatArray() { FloatPtr ptr = getOutputDataPointer().as(FloatPtr.class); return ptr.toFloatArray(getOutputDataSize()); } public double[] getOutputDataAsDoubleArray() {
public short[] getOutputDataAsShortArray() { ShortPtr ptr = getOutputDataPointer().as(ShortPtr.class); return ptr.toShortArray(getOutputDataSize()); } public char[] getOutputDataAsCharArray() {
public char[] getOutputDataAsCharArray() { CharPtr ptr = getOutputDataPointer().as(CharPtr.class); return ptr.toCharArray(getOutputDataSize()); } public int[] getOutputDataAsIntArray() {
public short[] getOutputDataAsShortArray() { ShortPtr ptr = getOutputDataPointer().as(ShortPtr.class); return ptr.toShortArray(getOutputDataSize()); } public char[] getOutputDataAsCharArray() {
public char[] getOutputDataAsCharArray() { CharPtr ptr = getOutputDataPointer().as(CharPtr.class); return ptr.toCharArray(getOutputDataSize()); } public int[] getOutputDataAsIntArray() {
public byte[] getOutputDataAsByteArray() { BytePtr ptr = getOutputDataPointer().as(BytePtr.class); return ptr.toByteArray(getOutputDataSize()); } public short[] getOutputDataAsShortArray() {
public int[] getOutputDataAsIntArray() { IntPtr ptr = getOutputDataPointer().as(IntPtr.class); return ptr.toIntArray(getOutputDataSize()); } public long[] getOutputDataAsLongArray() {
public double[] getOutputDataAsDoubleArray() { DoublePtr ptr = getOutputDataPointer().as(DoublePtr.class); return ptr.toDoubleArray(getOutputDataSize()); } /*<members>*/
public int[] getOutputDataAsIntArray() { IntPtr ptr = getOutputDataPointer().as(IntPtr.class); return ptr.toIntArray(getOutputDataSize()); } public long[] getOutputDataAsLongArray() {
public long[] getOutputDataAsLongArray() { LongPtr ptr = getOutputDataPointer().as(LongPtr.class); return ptr.toLongArray(getOutputDataSize()); } public float[] getOutputDataAsFloatArray() {
public double[] getOutputDataAsDoubleArray() { DoublePtr ptr = getOutputDataPointer().as(DoublePtr.class); return ptr.toDoubleArray(getOutputDataSize()); } /*<members>*/