示例#1
0
 public static Offset <FlatResult> CreateFlatResult(FlatBufferBuilder builder,
                                                    long id = 0,
                                                    VectorOffset variablesOffset = default(VectorOffset),
                                                    VectorOffset timingOffset    = default(VectorOffset))
 {
     builder.StartObject(3);
     FlatResult.AddId(builder, id);
     FlatResult.AddTiming(builder, timingOffset);
     FlatResult.AddVariables(builder, variablesOffset);
     return(FlatResult.EndFlatResult(builder));
 }
示例#2
0
 public static Offset <FlatResult> CreateFlatResult(FlatBufferBuilder builder,
                                                    long id = 0,
                                                    VectorOffset variablesOffset = default(VectorOffset),
                                                    VectorOffset timingOffset    = default(VectorOffset),
                                                    long footprintForward        = 0,
                                                    long footprintBackward       = 0)
 {
     builder.StartObject(5);
     FlatResult.AddFootprintBackward(builder, footprintBackward);
     FlatResult.AddFootprintForward(builder, footprintForward);
     FlatResult.AddId(builder, id);
     FlatResult.AddTiming(builder, timingOffset);
     FlatResult.AddVariables(builder, variablesOffset);
     return(FlatResult.EndFlatResult(builder));
 }