public final class JCGLRG32ByteBuffered extends Object implements JCGLRG32Type
ByteBuffer based implementation of the JCGLRG32 record type.| Modifier and Type | Method and Description |
|---|---|
double |
getG() |
int |
getGRaw() |
double |
getR() |
int |
getRRaw() |
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 JCGLRG32Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRG32Type |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setG(double x)
Set the value of the
g field |
void |
setGRaw(int x)
Set the value of the
g field |
void |
setR(double x)
Set the value of the
r field |
void |
setRRaw(int x)
Set the value of the
r field |
int |
sizeOctets() |
public static JCGLRG32Type 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 JCGLRG32Type 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 JCGLRG32ReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRG32ReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaRType()
metaRType in interface JCGLRG32ReadableTyper fieldpublic int getRRaw()
getRRaw in interface JCGLRG32ReadableTyper fieldpublic void setRRaw(int x)
JCGLRG32WritableTyper fieldsetRRaw in interface JCGLRG32WritableTypex - The new valuepublic double getR()
getR in interface JCGLRG32ReadableTyper fieldpublic void setR(double x)
JCGLRG32WritableTyper fieldsetR in interface JCGLRG32WritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRG32ReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRG32ReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaGType()
metaGType in interface JCGLRG32ReadableTypeg fieldpublic int getGRaw()
getGRaw in interface JCGLRG32ReadableTypeg fieldpublic void setGRaw(int x)
JCGLRG32WritableTypeg fieldsetGRaw in interface JCGLRG32WritableTypex - The new valuepublic double getG()
getG in interface JCGLRG32ReadableTypeg fieldpublic void setG(double x)
JCGLRG32WritableTypeg fieldsetG in interface JCGLRG32WritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com