Exemple #1
0
 public static int createStat(FlatBufferBuilder builder, int idOffset, long val, int count) {
   builder.startObject(3);
   Stat.addVal(builder, val);
   Stat.addId(builder, idOffset);
   Stat.addCount(builder, count);
   return Stat.endStat(builder);
 }
Exemple #2
0
 public static Stat getRootAsStat(ByteBuffer _bb, Stat obj) {
   _bb.order(ByteOrder.LITTLE_ENDIAN);
   return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb));
 }