src/java/grl/src/grl/flatbuffer/VrepPath.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 VrepPath extends Table {
12  public static VrepPath getRootAsVrepPath(ByteBuffer _bb) { return getRootAsVrepPath(_bb, new VrepPath()); }
13  public static VrepPath getRootAsVrepPath(ByteBuffer _bb, VrepPath obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public VrepPath __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
17  public grl.flatbuffer.VrepControlPoint controlPoints(grl.flatbuffer.VrepControlPoint obj, int j) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
18  public int controlPointsLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
19 
20  public static int createVrepPath(FlatBufferBuilder builder,
21  int controlPointsOffset) {
22  builder.startObject(1);
23  VrepPath.addControlPoints(builder, controlPointsOffset);
24  return VrepPath.endVrepPath(builder);
25  }
26 
27  public static void startVrepPath(FlatBufferBuilder builder) { builder.startObject(1); }
28  public static void addControlPoints(FlatBufferBuilder builder, int controlPointsOffset) { builder.addOffset(0, controlPointsOffset, 0); }
29  public static int createControlPointsVector(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(); }
30  public static void startControlPointsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
31  public static int endVrepPath(FlatBufferBuilder builder) {
32  int o = builder.endObject();
33  return o;
34  }
35  public static void finishVrepPathBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); }
36 }
37 
static void finishVrepPathBuffer(FlatBufferBuilder builder, int offset)
static void startControlPointsVector(FlatBufferBuilder builder, int numElems)
grl.flatbuffer.VrepControlPoint controlPoints(grl.flatbuffer.VrepControlPoint obj, int j)
grl.flatbuffer.VrepControlPoint controlPoints(int j)
static VrepPath getRootAsVrepPath(ByteBuffer _bb, VrepPath obj)
static void startVrepPath(FlatBufferBuilder builder)
static VrepPath getRootAsVrepPath(ByteBuffer _bb)
static int createControlPointsVector(FlatBufferBuilder builder, int[] data)
static void addControlPoints(FlatBufferBuilder builder, int controlPointsOffset)
static int createVrepPath(FlatBufferBuilder builder, int controlPointsOffset)