...

Text file src/github.com/google/flatbuffers/tests/MyGame/InParentNamespace.java

Documentation: github.com/google/flatbuffers/tests/MyGame

     1// automatically generated by the FlatBuffers compiler, do not modify
     2
     3package MyGame;
     4
     5import com.google.flatbuffers.BaseVector;
     6import com.google.flatbuffers.BooleanVector;
     7import com.google.flatbuffers.ByteVector;
     8import com.google.flatbuffers.Constants;
     9import com.google.flatbuffers.DoubleVector;
    10import com.google.flatbuffers.FlatBufferBuilder;
    11import com.google.flatbuffers.FloatVector;
    12import com.google.flatbuffers.IntVector;
    13import com.google.flatbuffers.LongVector;
    14import com.google.flatbuffers.ShortVector;
    15import com.google.flatbuffers.StringVector;
    16import com.google.flatbuffers.Struct;
    17import com.google.flatbuffers.Table;
    18import com.google.flatbuffers.UnionVector;
    19import java.nio.ByteBuffer;
    20import java.nio.ByteOrder;
    21
    22@SuppressWarnings("unused")
    23public final class InParentNamespace extends Table {
    24  public static void ValidateVersion() { Constants.FLATBUFFERS_23_5_26(); }
    25  public static InParentNamespace getRootAsInParentNamespace(ByteBuffer _bb) { return getRootAsInParentNamespace(_bb, new InParentNamespace()); }
    26  public static InParentNamespace getRootAsInParentNamespace(ByteBuffer _bb, InParentNamespace obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
    27  public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
    28  public InParentNamespace __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
    29
    30
    31  public static void startInParentNamespace(FlatBufferBuilder builder) { builder.startTable(0); }
    32  public static int endInParentNamespace(FlatBufferBuilder builder) {
    33    int o = builder.endTable();
    34    return o;
    35  }
    36
    37  public static final class Vector extends BaseVector {
    38    public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
    39
    40    public InParentNamespace get(int j) { return get(new InParentNamespace(), j); }
    41    public InParentNamespace get(InParentNamespace obj, int j) {  return obj.__assign(__indirect(__element(j), bb), bb); }
    42  }
    43  public InParentNamespaceT unpack() {
    44    InParentNamespaceT _o = new InParentNamespaceT();
    45    unpackTo(_o);
    46    return _o;
    47  }
    48  public void unpackTo(InParentNamespaceT _o) {
    49  }
    50  public static int pack(FlatBufferBuilder builder, InParentNamespaceT _o) {
    51    if (_o == null) return 0;
    52    startInParentNamespace(builder);
    53    return endInParentNamespace(builder);
    54  }
    55}
    56

View as plain text