2014-09-09 18:46:13 +00:00
|
|
|
// automatically generated, do not modify
|
|
|
|
|
|
|
|
namespace MyGame.Example
|
|
|
|
{
|
|
|
|
|
|
|
|
using FlatBuffers;
|
|
|
|
|
2015-04-06 23:42:08 +00:00
|
|
|
public sealed class Test : Struct {
|
2014-09-09 18:46:13 +00:00
|
|
|
public Test __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
|
|
|
|
|
2015-05-06 14:33:50 +00:00
|
|
|
public short A { get { return bb.GetShort(bb_pos + 0); } }
|
|
|
|
public sbyte B { get { return bb.GetSbyte(bb_pos + 2); } }
|
2014-09-09 18:46:13 +00:00
|
|
|
|
2014-09-17 00:37:17 +00:00
|
|
|
public static int CreateTest(FlatBufferBuilder builder, short A, sbyte B) {
|
2014-09-09 18:46:13 +00:00
|
|
|
builder.Prep(2, 4);
|
|
|
|
builder.Pad(1);
|
2014-09-17 00:37:17 +00:00
|
|
|
builder.PutSbyte(B);
|
2014-09-09 18:46:13 +00:00
|
|
|
builder.PutShort(A);
|
2015-05-06 14:33:50 +00:00
|
|
|
return builder.Offset;
|
2014-09-09 18:46:13 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|