src/java/grl/src/grl/flatbuffer/ArmControlState.java
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package grl.flatbuffer;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 @SuppressWarnings("unused")
11 public final class ArmControlState extends Table {
12  public static ArmControlState getRootAsArmControlState(ByteBuffer _bb) { return getRootAsArmControlState(_bb, new ArmControlState()); }
13  public static ArmControlState getRootAsArmControlState(ByteBuffer _bb, ArmControlState obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public ArmControlState __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public String name() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; }
17  public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
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; }
22 
23  public static int createArmControlState(FlatBufferBuilder builder,
24  int nameOffset,
25  long sequenceNumber,
26  double timeStamp,
27  byte state_type,
28  int stateOffset) {
29  builder.startObject(5);
30  ArmControlState.addTimeStamp(builder, timeStamp);
31  ArmControlState.addSequenceNumber(builder, sequenceNumber);
32  ArmControlState.addState(builder, stateOffset);
33  ArmControlState.addName(builder, nameOffset);
34  ArmControlState.addStateType(builder, state_type);
35  return ArmControlState.endArmControlState(builder);
36  }
37 
38  public static void startArmControlState(FlatBufferBuilder builder) { 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); }
44  public static int endArmControlState(FlatBufferBuilder builder) {
45  int o = builder.endObject();
46  return o;
47  }
48 }
49 
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)
static void addName(FlatBufferBuilder builder, int nameOffset)
static void addStateType(FlatBufferBuilder builder, byte stateType)
static void addSequenceNumber(FlatBufferBuilder builder, long sequenceNumber)