public final class R2RGBA8ByteBuffered extends Object implements R2RGBA8Type
ByteBuffer
based implementation of the R2RGBA8
record type.Modifier and Type | Method and Description |
---|---|
byte |
getColorA() |
byte |
getColorB() |
byte |
getColorG() |
byte |
getColorR() |
int |
metaColorAOffsetFromCursor() |
int |
metaColorAOffsetFromType() |
static int |
metaColorAStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaColorAType() |
int |
metaColorBOffsetFromCursor() |
int |
metaColorBOffsetFromType() |
static int |
metaColorBStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaColorBType() |
int |
metaColorGOffsetFromCursor() |
int |
metaColorGOffsetFromType() |
static int |
metaColorGStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaColorGType() |
int |
metaColorROffsetFromCursor() |
int |
metaColorROffsetFromType() |
static int |
metaColorRStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned |
metaColorRType() |
static R2RGBA8Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static R2RGBA8Type |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setColorA(byte x)
Set the value of the
color_a field |
void |
setColorB(byte x)
Set the value of the
color_b field |
void |
setColorG(byte x)
Set the value of the
color_g field |
void |
setColorR(byte x)
Set the value of the
color_r field |
static int |
sizeInOctets() |
int |
sizeOctets() |
public static R2RGBA8Type 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 R2RGBA8Type 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.JPRAValueType
public static int sizeInOctets()
public int metaColorROffsetFromType()
metaColorROffsetFromType
in interface R2RGBA8ReadableType
color_r
field, from the start of the typepublic static int metaColorRStaticOffsetFromType()
color_r
from the start of the typepublic int metaColorROffsetFromCursor()
metaColorROffsetFromCursor
in interface R2RGBA8ReadableType
color_r
field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaColorRType()
metaColorRType
in interface R2RGBA8ReadableType
color_r
fieldpublic byte getColorR()
getColorR
in interface R2RGBA8ReadableType
color_r
fieldpublic void setColorR(byte x)
R2RGBA8WritableType
color_r
fieldsetColorR
in interface R2RGBA8WritableType
x
- The new valuepublic int metaColorGOffsetFromType()
metaColorGOffsetFromType
in interface R2RGBA8ReadableType
color_g
field, from the start of the typepublic static int metaColorGStaticOffsetFromType()
color_g
from the start of the typepublic int metaColorGOffsetFromCursor()
metaColorGOffsetFromCursor
in interface R2RGBA8ReadableType
color_g
field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaColorGType()
metaColorGType
in interface R2RGBA8ReadableType
color_g
fieldpublic byte getColorG()
getColorG
in interface R2RGBA8ReadableType
color_g
fieldpublic void setColorG(byte x)
R2RGBA8WritableType
color_g
fieldsetColorG
in interface R2RGBA8WritableType
x
- The new valuepublic int metaColorBOffsetFromType()
metaColorBOffsetFromType
in interface R2RGBA8ReadableType
color_b
field, from the start of the typepublic static int metaColorBStaticOffsetFromType()
color_b
from the start of the typepublic int metaColorBOffsetFromCursor()
metaColorBOffsetFromCursor
in interface R2RGBA8ReadableType
color_b
field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaColorBType()
metaColorBType
in interface R2RGBA8ReadableType
color_b
fieldpublic byte getColorB()
getColorB
in interface R2RGBA8ReadableType
color_b
fieldpublic void setColorB(byte x)
R2RGBA8WritableType
color_b
fieldsetColorB
in interface R2RGBA8WritableType
x
- The new valuepublic int metaColorAOffsetFromType()
metaColorAOffsetFromType
in interface R2RGBA8ReadableType
color_a
field, from the start of the typepublic static int metaColorAStaticOffsetFromType()
color_a
from the start of the typepublic int metaColorAOffsetFromCursor()
metaColorAOffsetFromCursor
in interface R2RGBA8ReadableType
color_a
field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsigned metaColorAType()
metaColorAType
in interface R2RGBA8ReadableType
color_a
fieldpublic byte getColorA()
getColorA
in interface R2RGBA8ReadableType
color_a
fieldpublic void setColorA(byte x)
R2RGBA8WritableType
color_a
fieldsetColorA
in interface R2RGBA8WritableType
x
- The new valueCopyright © 2017 <code@io7m.com> http://io7m.com