src/java/grl/src/grl/flatbuffer/ArmControlSeries.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 ArmControlSeries extends Table {
12  public static ArmControlSeries getRootAsArmControlSeries(ByteBuffer _bb) { return getRootAsArmControlSeries(_bb, new ArmControlSeries()); }
13  public static ArmControlSeries getRootAsArmControlSeries(ByteBuffer _bb, ArmControlSeries obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public static boolean ArmControlSeriesBufferHasIdentifier(ByteBuffer _bb) { return __has_identifier(_bb, "armc"); }
15  public ArmControlSeries __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
16 
17  public ArmControlState states(int j) { return states(new ArmControlState(), j); }
18  public ArmControlState states(ArmControlState obj, int j) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
19  public int statesLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
20 
21  public static int createArmControlSeries(FlatBufferBuilder builder,
22  int statesOffset) {
23  builder.startObject(1);
24  ArmControlSeries.addStates(builder, statesOffset);
25  return ArmControlSeries.endArmControlSeries(builder);
26  }
27 
28  public static void startArmControlSeries(FlatBufferBuilder builder) { builder.startObject(1); }
29  public static void addStates(FlatBufferBuilder builder, int statesOffset) { builder.addOffset(0, statesOffset, 0); }
30  public static int createStatesVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
31  public static void startStatesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
32  public static int endArmControlSeries(FlatBufferBuilder builder) {
33  int o = builder.endObject();
34  return o;
35  }
36  public static void finishArmControlSeriesBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset, "armc"); }
37 }
38 
static void finishArmControlSeriesBuffer(FlatBufferBuilder builder, int offset)
static void addStates(FlatBufferBuilder builder, int statesOffset)
static ArmControlSeries getRootAsArmControlSeries(ByteBuffer _bb)
static ArmControlSeries getRootAsArmControlSeries(ByteBuffer _bb, ArmControlSeries obj)
static int createArmControlSeries(FlatBufferBuilder builder, int statesOffset)
static int createStatesVector(FlatBufferBuilder builder, int[] data)
static void startStatesVector(FlatBufferBuilder builder, int numElems)