java.lang.Object
de.grogra.gpuflux.jocl.compute.ComputeByteBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBuffer
(boolean littleEndian) void
reset()
int
size()
void
write
(byte b) void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int[] pixels) void
void
void
void
void
void
void
void
writeBoolean
(boolean bool) void
writeDouble
(double v) void
writeFloat
(double d) void
writeFloat
(float v) void
writeInt
(int i) void
writeLong
(long l) void
writeShort
(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
-