Exemplo n.º 1
0
 public static Offset <Observe> CreateObserve(FlatBufferBuilder builder,
                                              StringOffset addressOffset     = default(StringOffset),
                                              Distribution distribution_type = Distribution.NONE,
                                              int distributionOffset         = 0,
                                              Offset <Tensor> valueOffset    = default(Offset <Tensor>))
 {
     builder.StartObject(4);
     Observe.AddValue(builder, valueOffset);
     Observe.AddDistribution(builder, distributionOffset);
     Observe.AddAddress(builder, addressOffset);
     Observe.AddDistributionType(builder, distribution_type);
     return(Observe.EndObserve(builder));
 }
Exemplo n.º 2
0
 public static Offset <ppx.Observe> CreateObserve(FlatBufferBuilder builder,
                                                  StringOffset addressOffset         = default(StringOffset),
                                                  StringOffset nameOffset            = default(StringOffset),
                                                  ppx.Distribution distribution_type = ppx.Distribution.NONE,
                                                  int distributionOffset             = 0,
                                                  Offset <ppx.Tensor> valueOffset    = default(Offset <ppx.Tensor>))
 {
     builder.StartTable(5);
     Observe.AddValue(builder, valueOffset);
     Observe.AddDistribution(builder, distributionOffset);
     Observe.AddName(builder, nameOffset);
     Observe.AddAddress(builder, addressOffset);
     Observe.AddDistributionType(builder, distribution_type);
     return(Observe.EndObserve(builder));
 }