示例#1
0
 public static Offset <UIHistogram> CreateUIHistogram(FlatBufferBuilder builder,
                                                      UIHistogramType type = UIHistogramType.DISCRETE,
                                                      uint numbins         = 0,
                                                      Offset <FlatArray> binrangesOffset = default(Offset <FlatArray>),
                                                      Offset <FlatArray> yOffset         = default(Offset <FlatArray>),
                                                      VectorOffset binlabelsOffset       = default(VectorOffset))
 {
     builder.StartObject(5);
     UIHistogram.AddBinlabels(builder, binlabelsOffset);
     UIHistogram.AddY(builder, yOffset);
     UIHistogram.AddBinranges(builder, binrangesOffset);
     UIHistogram.AddNumbins(builder, numbins);
     UIHistogram.AddType(builder, type);
     return(UIHistogram.EndUIHistogram(builder));
 }
示例#2
0
 public static UIHistogram GetRootAsUIHistogram(ByteBuffer _bb, UIHistogram obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }