Пример #1
0
 public static Offset <GraphInfo> CreateGraphInfo(FlatBufferBuilder builder,
                                                  int graphId = 0,
                                                  VectorOffset nodesOffset              = default(VectorOffset),
                                                  VectorOffset commonNodeIdsOffset      = default(VectorOffset),
                                                  VectorOffset entranceNodeIdsOffset    = default(VectorOffset),
                                                  VectorOffset graphVariableInfosOffset = default(VectorOffset))
 {
     builder.StartObject(5);
     GraphInfo.AddGraphVariableInfos(builder, graphVariableInfosOffset);
     GraphInfo.AddEntranceNodeIds(builder, entranceNodeIdsOffset);
     GraphInfo.AddCommonNodeIds(builder, commonNodeIdsOffset);
     GraphInfo.AddNodes(builder, nodesOffset);
     GraphInfo.AddGraphId(builder, graphId);
     return(GraphInfo.EndGraphInfo(builder));
 }
Пример #2
0
 public static GraphInfo GetRootAsGraphInfo(ByteBuffer _bb, GraphInfo obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }