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