de.grogra.gpuflux.jocl.compute
Class ComputeByteBuffer
java.lang.Object
de.grogra.gpuflux.jocl.compute.ComputeByteBuffer
public class ComputeByteBuffer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComputeByteBuffer
public ComputeByteBuffer(boolean littleEndian,
boolean bigEndian)
getBigEndianBuffer
public ByteArray getBigEndianBuffer()
getBuffer
public ByteArray getBuffer(boolean littleEndian)
getLittleEndianBuffer
public ByteArray getLittleEndianBuffer()
reset
public void reset()
size
public int size()
write
public void write(byte b)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int[] pixels)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(Matrix3f m)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(Matrix4f m)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(Tuple2f v)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(Tuple3d v)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(Tuple3f v)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(Tuple4d v)
throws java.io.IOException
- Throws:
java.io.IOException
writeBoolean
public void writeBoolean(boolean bool)
throws java.io.IOException
- Throws:
java.io.IOException
writeDouble
public void writeDouble(double v)
throws java.io.IOException
- Throws:
java.io.IOException
writeFloat
public void writeFloat(double d)
throws java.io.IOException
- Throws:
java.io.IOException
writeFloat
public void writeFloat(float v)
throws java.io.IOException
- Throws:
java.io.IOException
writeInt
public void writeInt(int i)
throws java.io.IOException
- Throws:
java.io.IOException
writeLong
public void writeLong(long l)
throws java.io.IOException
- Throws:
java.io.IOException
writeShort
public void writeShort(int s)
throws java.io.IOException
- Throws:
java.io.IOException