public final class JCGLRGB8UByteBuffered extends Object implements JCGLRGB8UType
ByteBuffer based implementation of the JCGLRGB8U record type.| Modifier and Type | Method and Description |
|---|---|
byte |
getB() |
byte |
getG() |
byte |
getR() |
int |
metaBOffsetFromCursor() |
int |
metaBOffsetFromType() |
static int |
metaBStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaBType() |
int |
metaGOffsetFromCursor() |
int |
metaGOffsetFromType() |
static int |
metaGStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaGType() |
int |
metaROffsetFromCursor() |
int |
metaROffsetFromType() |
static int |
metaRStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaRType() |
static JCGLRGB8UType |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGB8UType |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setB(byte x)
Set the value of the
b field |
void |
setG(byte x)
Set the value of the
g field |
void |
setR(byte x)
Set the value of the
r field |
static int |
sizeInOctets() |
int |
sizeOctets() |
public static JCGLRGB8UType 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 JCGLRGB8UType 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 metaROffsetFromType()
metaROffsetFromType in interface JCGLRGB8UReadableTyper field, from the start of the typepublic static int metaRStaticOffsetFromType()
r from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGB8UReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaRType()
metaRType in interface JCGLRGB8UReadableTyper fieldpublic byte getR()
getR in interface JCGLRGB8UReadableTyper fieldpublic void setR(byte x)
JCGLRGB8UWritableTyper fieldsetR in interface JCGLRGB8UWritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGB8UReadableTypeg field, from the start of the typepublic static int metaGStaticOffsetFromType()
g from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGB8UReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaGType()
metaGType in interface JCGLRGB8UReadableTypeg fieldpublic byte getG()
getG in interface JCGLRGB8UReadableTypeg fieldpublic void setG(byte x)
JCGLRGB8UWritableTypeg fieldsetG in interface JCGLRGB8UWritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGB8UReadableTypeb field, from the start of the typepublic static int metaBStaticOffsetFromType()
b from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGB8UReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaBType()
metaBType in interface JCGLRGB8UReadableTypeb fieldpublic byte getB()
getB in interface JCGLRGB8UReadableTypeb fieldpublic void setB(byte x)
JCGLRGB8UWritableTypeb fieldsetB in interface JCGLRGB8UWritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com