3 package grl.flatbuffer;
8 import com.google.flatbuffers.*;
10 @SuppressWarnings(
"unused")
11 public final class ArmControlState extends Table {
16 public String
name() {
int o = __offset(4);
return o != 0 ? __string(o + bb_pos) : null; }
18 public long sequenceNumber() {
int o = __offset(6);
return o != 0 ? bb.getLong(o + bb_pos) : 0; }
19 public double timeStamp() {
int o = __offset(8);
return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
20 public byte
stateType() {
int o = __offset(10);
return o != 0 ? bb.get(o + bb_pos) : 0; }
21 public Table
state(Table obj) {
int o = __offset(12);
return o != 0 ? __union(obj, o) : null; }
29 builder.startObject(5);
39 public static void addName(FlatBufferBuilder builder,
int nameOffset) { builder.addOffset(0, nameOffset, 0); }
40 public static void addSequenceNumber(FlatBufferBuilder builder,
long sequenceNumber) { builder.addLong(1, sequenceNumber, 0); }
41 public static void addTimeStamp(FlatBufferBuilder builder,
double timeStamp) { builder.addDouble(2, timeStamp, 0.0); }
42 public static void addStateType(FlatBufferBuilder builder, byte stateType) { builder.addByte(3, stateType, 0); }
43 public static void addState(FlatBufferBuilder builder,
int stateOffset) { builder.addOffset(4, stateOffset, 0); }
45 int o = builder.endObject();
static int endArmControlState(FlatBufferBuilder builder)
ByteBuffer nameAsByteBuffer()
static void startArmControlState(FlatBufferBuilder builder)
static ArmControlState getRootAsArmControlState(ByteBuffer _bb, ArmControlState obj)
static ArmControlState getRootAsArmControlState(ByteBuffer _bb)
static void addTimeStamp(FlatBufferBuilder builder, double timeStamp)
static void addState(FlatBufferBuilder builder, int stateOffset)
static int createArmControlState(FlatBufferBuilder builder, int nameOffset, long sequenceNumber, double timeStamp, byte state_type, int stateOffset)
ArmControlState __init(int _i, ByteBuffer _bb)
static void addName(FlatBufferBuilder builder, int nameOffset)
static void addStateType(FlatBufferBuilder builder, byte stateType)
static void addSequenceNumber(FlatBufferBuilder builder, long sequenceNumber)