public final class JCGLRGB16ByteBuffered extends Object implements JCGLRGB16Type
ByteBuffer based implementation of the JCGLRGB16 record type.| Modifier and Type | Method and Description |
|---|---|
double |
getB() |
short |
getBRaw() |
double |
getG() |
short |
getGRaw() |
double |
getR() |
short |
getRRaw() |
int |
metaBOffsetFromCursor() |
int |
metaBOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaBType() |
int |
metaGOffsetFromCursor() |
int |
metaGOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaGType() |
int |
metaROffsetFromCursor() |
int |
metaROffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaRType() |
static JCGLRGB16Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGB16Type |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setB(double x)
Set the value of the
b field |
void |
setBRaw(short x)
Set the value of the
b field |
void |
setG(double x)
Set the value of the
g field |
void |
setGRaw(short x)
Set the value of the
g field |
void |
setR(double x)
Set the value of the
r field |
void |
setRRaw(short x)
Set the value of the
r field |
int |
sizeOctets() |
public static JCGLRGB16Type 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 JCGLRGB16Type 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 JCGLRGB16ReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGB16ReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaRType()
metaRType in interface JCGLRGB16ReadableTyper fieldpublic short getRRaw()
getRRaw in interface JCGLRGB16ReadableTyper fieldpublic void setRRaw(short x)
JCGLRGB16WritableTyper fieldsetRRaw in interface JCGLRGB16WritableTypex - The new valuepublic double getR()
getR in interface JCGLRGB16ReadableTyper fieldpublic void setR(double x)
JCGLRGB16WritableTyper fieldsetR in interface JCGLRGB16WritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGB16ReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGB16ReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaGType()
metaGType in interface JCGLRGB16ReadableTypeg fieldpublic short getGRaw()
getGRaw in interface JCGLRGB16ReadableTypeg fieldpublic void setGRaw(short x)
JCGLRGB16WritableTypeg fieldsetGRaw in interface JCGLRGB16WritableTypex - The new valuepublic double getG()
getG in interface JCGLRGB16ReadableTypeg fieldpublic void setG(double x)
JCGLRGB16WritableTypeg fieldsetG in interface JCGLRGB16WritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGB16ReadableTypeb field, from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGB16ReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaBType()
metaBType in interface JCGLRGB16ReadableTypeb fieldpublic short getBRaw()
getBRaw in interface JCGLRGB16ReadableTypeb fieldpublic void setBRaw(short x)
JCGLRGB16WritableTypeb fieldsetBRaw in interface JCGLRGB16WritableTypex - The new valuepublic double getB()
getB in interface JCGLRGB16ReadableTypeb fieldpublic void setB(double x)
JCGLRGB16WritableTypeb fieldsetB in interface JCGLRGB16WritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com