1// <auto-generated>
2//  automatically generated by the FlatBuffers compiler, do not modify
3// </auto-generated>
4
5namespace MyGame.Example
6{
7
8using global::System;
9using global::FlatBuffers;
10
11public struct Test : IFlatbufferObject
12{
13  private Struct __p;
14  public ByteBuffer ByteBuffer { get { return __p.bb; } }
15  public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
16  public Test __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
17
18  public short A { get { return __p.bb.GetShort(__p.bb_pos + 0); } }
19  public void MutateA(short a) { __p.bb.PutShort(__p.bb_pos + 0, a); }
20  public sbyte B { get { return __p.bb.GetSbyte(__p.bb_pos + 2); } }
21  public void MutateB(sbyte b) { __p.bb.PutSbyte(__p.bb_pos + 2, b); }
22
23  public static Offset<Test> CreateTest(FlatBufferBuilder builder, short A, sbyte B) {
24    builder.Prep(2, 4);
25    builder.Pad(1);
26    builder.PutSbyte(B);
27    builder.PutShort(A);
28    return new Offset<Test>(builder.Offset);
29  }
30};
31
32
33}
34