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