Example #1
0
 public static Offset <MessageRoot> CreateMessageRoot(FlatBufferBuilder builder,
                                                      MessageType message_type = MessageType.NONE,
                                                      int messageOffset        = 0)
 {
     builder.StartObject(2);
     MessageRoot.AddMessage(builder, messageOffset);
     MessageRoot.AddMessageType(builder, message_type);
     return(MessageRoot.EndMessageRoot(builder));
 }
Example #2
0
 public static MessageRoot GetRootAsMessageRoot(ByteBuffer _bb, MessageRoot obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }