public final class SMFBv1CoordinateSystemsByteBuffered extends Object implements SMFBv1CoordinateSystemsType
ByteBuffer based implementation of the SMFBv1CoordinateSystems packed type.| Modifier and Type | Method and Description |
|---|---|
int |
getForward() |
int |
getRight() |
int |
getUp() |
int |
getWinding() |
static SMFBv1CoordinateSystemsType |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static SMFBv1CoordinateSystemsType |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
set(int right,
int up,
int forward,
int winding)
Set the value of all fields.
|
void |
setForward(int x)
Set the value of the
forward field. |
void |
setRight(int x)
Set the value of the
right field. |
void |
setUp(int x)
Set the value of the
up field. |
void |
setWinding(int x)
Set the value of the
winding field. |
static int |
sizeInOctets() |
int |
sizeOctets() |
public static SMFBv1CoordinateSystemsType 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 SMFBv1CoordinateSystemsType 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 static int sizeInOctets()
public int getRight()
getRight in interface SMFBv1CoordinateSystemsReadableTyperight fieldpublic void setRight(int x)
SMFBv1CoordinateSystemsWritableTyperight field.
The 3 least significant bits of x will be used.setRight in interface SMFBv1CoordinateSystemsWritableTypex - The new valuepublic int getUp()
getUp in interface SMFBv1CoordinateSystemsReadableTypeup fieldpublic void setUp(int x)
SMFBv1CoordinateSystemsWritableTypeup field.
The 3 least significant bits of x will be used.setUp in interface SMFBv1CoordinateSystemsWritableTypex - The new valuepublic int getForward()
getForward in interface SMFBv1CoordinateSystemsReadableTypeforward fieldpublic void setForward(int x)
SMFBv1CoordinateSystemsWritableTypeforward field.
The 3 least significant bits of x will be used.setForward in interface SMFBv1CoordinateSystemsWritableTypex - The new valuepublic int getWinding()
getWinding in interface SMFBv1CoordinateSystemsReadableTypewinding fieldpublic void setWinding(int x)
SMFBv1CoordinateSystemsWritableTypewinding field.
The 2 least significant bits of x will be used.setWinding in interface SMFBv1CoordinateSystemsWritableTypex - The new valuepublic void set(int right,
int up,
int forward,
int winding)
SMFBv1CoordinateSystemsWritableTypeset in interface SMFBv1CoordinateSystemsWritableTyperight - The value for field rightup - The value for field upforward - The value for field forwardwinding - The value for field windingCopyright © 2017 <code@io7m.com> http://io7m.com