2014-01-28 00:52:49 +00:00
|
|
|
// automatically generated, do not modify
|
|
|
|
|
|
|
|
package MyGame.Example;
|
|
|
|
|
|
|
|
import java.nio.*;
|
|
|
|
import java.lang.*;
|
|
|
|
import java.util.*;
|
2014-09-16 00:45:15 +00:00
|
|
|
import com.google.flatbuffers.*;
|
2014-01-28 00:52:49 +00:00
|
|
|
|
2015-04-06 23:42:08 +00:00
|
|
|
public final class Test extends Struct {
|
2014-01-28 00:52:49 +00:00
|
|
|
public Test __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
|
2014-09-04 23:31:44 +00:00
|
|
|
|
2014-01-28 00:52:49 +00:00
|
|
|
public short a() { return bb.getShort(bb_pos + 0); }
|
|
|
|
public byte b() { return bb.get(bb_pos + 2); }
|
|
|
|
|
|
|
|
public static int createTest(FlatBufferBuilder builder, short a, byte b) {
|
2014-07-02 00:56:12 +00:00
|
|
|
builder.prep(2, 4);
|
2014-01-28 00:52:49 +00:00
|
|
|
builder.pad(1);
|
|
|
|
builder.putByte(b);
|
|
|
|
builder.putShort(a);
|
|
|
|
return builder.offset();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|