Exemplo n.º 1
0
 public static Offset <FlatConfiguration> CreateFlatConfiguration(FlatBufferBuilder builder,
                                                                  long id = 0,
                                                                  ExecutionMode executionMode = ExecutionMode.SEQUENTIAL,
                                                                  ProfilingMode profilingMode = ProfilingMode.NONE,
                                                                  OutputMode outputMode       = OutputMode.IMPLICIT,
                                                                  bool timestats         = false,
                                                                  long footprintForward  = 0,
                                                                  long footprintBackward = 0,
                                                                  Direction direction    = Direction.FORWARD_ONLY)
 {
     builder.StartObject(8);
     FlatConfiguration.AddFootprintBackward(builder, footprintBackward);
     FlatConfiguration.AddFootprintForward(builder, footprintForward);
     FlatConfiguration.AddId(builder, id);
     FlatConfiguration.AddDirection(builder, direction);
     FlatConfiguration.AddTimestats(builder, timestats);
     FlatConfiguration.AddOutputMode(builder, outputMode);
     FlatConfiguration.AddProfilingMode(builder, profilingMode);
     FlatConfiguration.AddExecutionMode(builder, executionMode);
     return(FlatConfiguration.EndFlatConfiguration(builder));
 }
Exemplo n.º 2
0
 public static FlatConfiguration GetRootAsFlatConfiguration(ByteBuffer _bb, FlatConfiguration obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }