public final class JCGLR8UByteBuffered extends Object implements JCGLR8UType
ByteBuffer based implementation of the JCGLR8U packed type.| Modifier and Type | Method and Description |
|---|---|
int |
getR() |
static JCGLR8UType |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLR8UType |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
set(int r)
Set the value of all fields.
|
void |
setR(int x)
Set the value of the
r field. |
int |
sizeOctets() |
public static JCGLR8UType 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 JCGLR8UType 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 int getR()
getR in interface JCGLR8UReadableTyper fieldpublic void setR(int x)
JCGLR8UWritableTyper field.
The 8 least significant bits of x will be used.setR in interface JCGLR8UWritableTypex - The new valuepublic void set(int r)
JCGLR8UWritableTypeset in interface JCGLR8UWritableTyper - The value for field rCopyright © 2016 <code@io7m.com> http://io7m.com