public final class JCGLR8ByteBuffered extends Object implements JCGLR8Type
ByteBuffer based implementation of the JCGLR8 packed type.| Modifier and Type | Method and Description |
|---|---|
double |
getR() |
int |
getRRaw() |
static JCGLR8Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLR8Type |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
set(double r)
Set the value of all fields.
|
void |
setR(double x)
Set the value of the
r field. |
void |
setRRaw(int x)
Set the value of the
r field. |
static int |
sizeInOctets() |
int |
sizeOctets() |
public static JCGLR8Type newValueWithOffset(ByteBuffer in_buffer, com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer, int in_base_offset)
in_buffer - A byte bufferin_pointer - A cursorin_base_offset - The base offset from the cursorpublic static JCGLR8Type newValue(ByteBuffer in_buffer, com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
in_buffer - A byte bufferin_pointer - A cursorpublic int sizeOctets()
sizeOctets in interface com.io7m.jpra.runtime.java.JPRAValueTypepublic static int sizeInOctets()
public int getRRaw()
getRRaw in interface JCGLR8ReadableTyper fieldpublic void setRRaw(int x)
JCGLR8WritableTyper field.
The 8 least significant bits of x will be used.setRRaw in interface JCGLR8WritableTypex - The new valuepublic double getR()
getR in interface JCGLR8ReadableTyper fieldpublic void setR(double x)
JCGLR8WritableTyper field.setR in interface JCGLR8WritableTypex - The new value (in the range [0, 1])public void set(double r)
JCGLR8WritableTypeset in interface JCGLR8WritableTyper - The value for field rCopyright © 2016 <code@io7m.com> http://io7m.com