2016-05-26 13:26:58 +00:00
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
2014-09-09 18:46:13 +00:00
|
|
|
|
|
|
|
namespace MyGame.Example
|
|
|
|
{
|
|
|
|
|
2017-03-29 18:09:25 +00:00
|
|
|
using global::System;
|
|
|
|
using global::FlatBuffers;
|
2014-09-09 18:46:13 +00:00
|
|
|
|
2016-08-13 01:01:38 +00:00
|
|
|
public struct Test : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Struct __p;
|
2016-09-09 13:25:09 +00:00
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
2016-08-13 01:01:38 +00:00
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
|
|
|
|
public Test __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
2014-09-09 18:46:13 +00:00
|
|
|
|
2016-08-13 01:01:38 +00:00
|
|
|
public short A { get { return __p.bb.GetShort(__p.bb_pos + 0); } }
|
|
|
|
public void MutateA(short a) { __p.bb.PutShort(__p.bb_pos + 0, a); }
|
|
|
|
public sbyte B { get { return __p.bb.GetSbyte(__p.bb_pos + 2); } }
|
|
|
|
public void MutateB(sbyte b) { __p.bb.PutSbyte(__p.bb_pos + 2, b); }
|
2014-09-09 18:46:13 +00:00
|
|
|
|
2015-07-28 21:33:45 +00:00
|
|
|
public static Offset<Test> 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-07-28 21:33:45 +00:00
|
|
|
return new Offset<Test>(builder.Offset);
|
2014-09-09 18:46:13 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|