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.*;
|
|
|
|
import flatbuffers.*;
|
|
|
|
|
|
|
|
public 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 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();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|