java.lang.Object
de.grogra.gpuflux.jocl.compute.ComputeByteBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBuffer(boolean littleEndian) voidreset()intsize()voidwrite(byte b) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int[] pixels) voidvoidvoidvoidvoidvoidvoidvoidwriteBoolean(boolean bool) voidwriteDouble(double v) voidwriteFloat(double d) voidwriteFloat(float v) voidwriteInt(int i) voidwriteLong(long l) voidwriteShort(int s)
-
Constructor Details
-
ComputeByteBuffer
public ComputeByteBuffer(boolean littleEndian, boolean bigEndian)
-
-
Method Details
-
getLittleEndianBuffer
-
getBigEndianBuffer
-
reset
public void reset() -
writeDouble
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeShort
- Throws:
IOException
-
size
public int size() -
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
writeBoolean
- Throws:
IOException
-
write
- Throws:
IOException
-
getBuffer
-