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)); }
public static MessageRoot GetRootAsMessageRoot(ByteBuffer _bb, MessageRoot obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }