Exemple #1
0
 public static Offset <MessageRoot> CreateMessageRoot(FlatBufferBuilder builder,
                                                      uint netid     = 0,
                                                      uint scene     = 0,
                                                      Data data_type = Data.NONE,
                                                      int dataOffset = 0)
 {
     builder.StartObject(4);
     MessageRoot.AddData(builder, dataOffset);
     MessageRoot.AddScene(builder, scene);
     MessageRoot.AddNetid(builder, netid);
     MessageRoot.AddDataType(builder, data_type);
     return(MessageRoot.EndMessageRoot(builder));
 }
Exemple #2
0
 public static MessageRoot GetRootAsMessageRoot(ByteBuffer _bb, MessageRoot obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }