예제 #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));
 }
예제 #3
0
 public static FlatResult GetRootAsFlatResult(ByteBuffer _bb, FlatResult obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }