Exemplo n.º 1
0
 public static Offset <UISummaryStatistics> CreateUISummaryStatistics(FlatBufferBuilder builder,
                                                                      uint bitmask = 0,
                                                                      Offset <FlatArray> minOffset = default(Offset <FlatArray>),
                                                                      Offset <FlatArray> maxOffset = default(Offset <FlatArray>),
                                                                      double mean        = 0.0,
                                                                      double stdev       = 0.0,
                                                                      long countzero     = 0,
                                                                      long countpositive = 0,
                                                                      long countnegative = 0,
                                                                      long countnan      = 0,
                                                                      long countinf      = 0)
 {
     builder.StartObject(10);
     UISummaryStatistics.AddCountinf(builder, countinf);
     UISummaryStatistics.AddCountnan(builder, countnan);
     UISummaryStatistics.AddCountnegative(builder, countnegative);
     UISummaryStatistics.AddCountpositive(builder, countpositive);
     UISummaryStatistics.AddCountzero(builder, countzero);
     UISummaryStatistics.AddStdev(builder, stdev);
     UISummaryStatistics.AddMean(builder, mean);
     UISummaryStatistics.AddMax(builder, maxOffset);
     UISummaryStatistics.AddMin(builder, minOffset);
     UISummaryStatistics.AddBitmask(builder, bitmask);
     return(UISummaryStatistics.EndUISummaryStatistics(builder));
 }
Exemplo n.º 2
0
 public static UISummaryStatistics GetRootAsUISummaryStatistics(ByteBuffer _bb, UISummaryStatistics obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }