public final class JCGLRGB8IByteBuffered extends Object implements JCGLRGB8IType
ByteBuffer based implementation of the JCGLRGB8I record type.| Modifier and Type | Method and Description |
|---|---|
byte |
getB() |
byte |
getG() |
byte |
getR() |
int |
metaBOffsetFromCursor() |
int |
metaBOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerSigned |
metaBType() |
int |
metaGOffsetFromCursor() |
int |
metaGOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerSigned |
metaGType() |
int |
metaROffsetFromCursor() |
int |
metaROffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerSigned |
metaRType() |
static JCGLRGB8IType |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGB8IType |
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 |
int |
sizeOctets() |
public static JCGLRGB8IType 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 JCGLRGB8IType 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 JCGLRGB8IReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGB8IReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerSigned metaRType()
metaRType in interface JCGLRGB8IReadableTyper fieldpublic byte getR()
getR in interface JCGLRGB8IReadableTyper fieldpublic void setR(byte x)
JCGLRGB8IWritableTyper fieldsetR in interface JCGLRGB8IWritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGB8IReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGB8IReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerSigned metaGType()
metaGType in interface JCGLRGB8IReadableTypeg fieldpublic byte getG()
getG in interface JCGLRGB8IReadableTypeg fieldpublic void setG(byte x)
JCGLRGB8IWritableTypeg fieldsetG in interface JCGLRGB8IWritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGB8IReadableTypeb field, from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGB8IReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerSigned metaBType()
metaBType in interface JCGLRGB8IReadableTypeb fieldpublic byte getB()
getB in interface JCGLRGB8IReadableTypeb fieldpublic void setB(byte x)
JCGLRGB8IWritableTypeb fieldsetB in interface JCGLRGB8IWritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com