Beispiel #1
0
 public static Offset <MessageRoot> CreateMessageRoot(FlatBufferBuilder builder,
                                                      Data data_type = Data.NONE,
                                                      int dataOffset = 0)
 {
     builder.StartObject(2);
     MessageRoot.AddData(builder, dataOffset);
     MessageRoot.AddDataType(builder, data_type);
     return(MessageRoot.EndMessageRoot(builder));
 }
Beispiel #2
0
 public static MessageRoot GetRootAsMessageRoot(ByteBuffer _bb, MessageRoot obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }