build/include/grl/flatbuffer/grl/flatbuffer/KUKAiiwaStates.java
Go to the documentation of this file.
1 // automatically generated, 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 KUKAiiwaStates extends Table {
12  public static KUKAiiwaStates getRootAsKUKAiiwaStates(ByteBuffer _bb) { return getRootAsKUKAiiwaStates(_bb, new KUKAiiwaStates()); }
13  public static KUKAiiwaStates getRootAsKUKAiiwaStates(ByteBuffer _bb, KUKAiiwaStates obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public static boolean KUKAiiwaStatesBufferHasIdentifier(ByteBuffer _bb) { return __has_identifier(_bb, "iiwa"); }
15  public KUKAiiwaStates __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
16 
17  public KUKAiiwaState states(int j) { return states(new KUKAiiwaState(), j); }
18  public KUKAiiwaState states(KUKAiiwaState 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 createKUKAiiwaStates(FlatBufferBuilder builder,
22  int states) {
23  builder.startObject(1);
24  KUKAiiwaStates.addStates(builder, states);
25  return KUKAiiwaStates.endKUKAiiwaStates(builder);
26  }
27 
28  public static void startKUKAiiwaStates(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 endKUKAiiwaStates(FlatBufferBuilder builder) {
33  int o = builder.endObject();
34  return o;
35  }
36  public static void finishKUKAiiwaStatesBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset, "iiwa"); }
37 };
38 
static int createStatesVector(FlatBufferBuilder builder, int[] data)
static int createKUKAiiwaStates(FlatBufferBuilder builder, int states)
static KUKAiiwaStates getRootAsKUKAiiwaStates(ByteBuffer _bb, KUKAiiwaStates obj)
static void startStatesVector(FlatBufferBuilder builder, int numElems)
static void addStates(FlatBufferBuilder builder, int statesOffset)
static void finishKUKAiiwaStatesBuffer(FlatBufferBuilder builder, int offset)