public final class JCGLRGB16UByteBuffered extends Object implements JCGLRGB16UType
ByteBuffer based implementation of the JCGLRGB16U record type.| Modifier and Type | Method and Description |
|---|---|
short |
getB() |
short |
getG() |
short |
getR() |
int |
metaBOffsetFromCursor() |
int |
metaBOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaBType() |
int |
metaGOffsetFromCursor() |
int |
metaGOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaGType() |
int |
metaROffsetFromCursor() |
int |
metaROffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaRType() |
static JCGLRGB16UType |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGB16UType |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setB(short x)
Set the value of the
b field |
void |
setG(short x)
Set the value of the
g field |
void |
setR(short x)
Set the value of the
r field |
int |
sizeOctets() |
public static JCGLRGB16UType 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 JCGLRGB16UType 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 metaROffsetFromType()
metaROffsetFromType in interface JCGLRGB16UReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGB16UReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaRType()
metaRType in interface JCGLRGB16UReadableTyper fieldpublic short getR()
getR in interface JCGLRGB16UReadableTyper fieldpublic void setR(short x)
JCGLRGB16UWritableTyper fieldsetR in interface JCGLRGB16UWritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGB16UReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGB16UReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaGType()
metaGType in interface JCGLRGB16UReadableTypeg fieldpublic short getG()
getG in interface JCGLRGB16UReadableTypeg fieldpublic void setG(short x)
JCGLRGB16UWritableTypeg fieldsetG in interface JCGLRGB16UWritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGB16UReadableTypeb field, from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGB16UReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaBType()
metaBType in interface JCGLRGB16UReadableTypeb fieldpublic short getB()
getB in interface JCGLRGB16UReadableTypeb fieldpublic void setB(short x)
JCGLRGB16UWritableTypeb fieldsetB in interface JCGLRGB16UWritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com