• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //  automatically generated by the FlatBuffers compiler, do not modify
3 // </auto-generated>
4 
5 namespace MyGame.Example
6 {
7 
8 using global::System;
9 using global::FlatBuffers;
10 
11 public struct Test : IFlatbufferObject
12 {
13   private Struct __p;
14   public ByteBuffer ByteBuffer { get { return __p.bb; } }
__initMyGame.Example.Test15   public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
__assignMyGame.Example.Test16   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); } }
MutateAMyGame.Example.Test19   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); } }
MutateBMyGame.Example.Test21   public void MutateB(sbyte b) { __p.bb.PutSbyte(__p.bb_pos + 2, b); }
22 
CreateTestMyGame.Example.Test23   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