...

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

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

     1// automatically generated by the FlatBuffers compiler, do not modify
     2
     3package MyGame.Example;
     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
    22public class ArrayStructT {
    23  private float a;
    24  private int[] b;
    25  private byte c;
    26  private MyGame.Example.NestedStructT[] d;
    27  private int e;
    28  private long[] f;
    29
    30  public float getA() { return a; }
    31
    32  public void setA(float a) { this.a = a; }
    33
    34  public int[] getB() { return b; }
    35
    36  public void setB(int[] b) { if (b != null && b.length == 15) this.b = b; }
    37
    38  public byte getC() { return c; }
    39
    40  public void setC(byte c) { this.c = c; }
    41
    42  public MyGame.Example.NestedStructT[] getD() { return d; }
    43
    44  public void setD(MyGame.Example.NestedStructT[] d) { if (d != null && d.length == 2) this.d = d; }
    45
    46  public int getE() { return e; }
    47
    48  public void setE(int e) { this.e = e; }
    49
    50  public long[] getF() { return f; }
    51
    52  public void setF(long[] f) { if (f != null && f.length == 2) this.f = f; }
    53
    54
    55  public ArrayStructT() {
    56    this.a = 0.0f;
    57    this.b = new int[15];
    58    this.c = 0;
    59    this.d = new MyGame.Example.NestedStructT[2];
    60    this.e = 0;
    61    this.f = new long[2];
    62  }
    63}
    64

View as plain text