AddId() public static method

public static AddId ( FlatBuffers.FlatBufferBuilder builder, StringOffset idOffset ) : void
builder FlatBuffers.FlatBufferBuilder
idOffset StringOffset
return void
示例#1
0
 public static int CreateStat(FlatBufferBuilder builder,
                              int id   = 0,
                              long val = 0)
 {
     builder.StartObject(2);
     Stat.AddVal(builder, val);
     Stat.AddId(builder, id);
     return(Stat.EndStat(builder));
 }
示例#2
0
 public static Offset <Stat> CreateStat(FlatBufferBuilder builder,
                                        StringOffset idOffset = default(StringOffset),
                                        long val     = 0,
                                        ushort count = 0)
 {
     builder.StartObject(3);
     Stat.AddVal(builder, val);
     Stat.AddId(builder, idOffset);
     Stat.AddCount(builder, count);
     return(Stat.EndStat(builder));
 }