blob: 83fdeb0c77888ae6a76ba6da1b0b2e9ff669d317 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3package MyGame.Example;
4
5import java.nio.*;
6import java.lang.*;
7import java.util.*;
8import com.google.flatbuffers.*;
9
10@SuppressWarnings("unused")
11public final class Test extends Struct {
12 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
13 public Test __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
14
15 public short a() { return bb.getShort(bb_pos + 0); }
16 public void mutateA(short a) { bb.putShort(bb_pos + 0, a); }
17 public byte b() { return bb.get(bb_pos + 2); }
18 public void mutateB(byte b) { bb.put(bb_pos + 2, b); }
19
20 public static int createTest(FlatBufferBuilder builder, short a, byte b) {
21 builder.prep(2, 4);
22 builder.pad(1);
23 builder.putByte(b);
24 builder.putShort(a);
25 return builder.offset();
26 }
27}
28