コード例 #1
0
 public static Offset <EnumEntry> CreateEnumEntry(FlatBufferBuilder builder,
                                                  FruitFilter key = 0,
                                                  int value       = 7412)
 {
     builder.StartObject(2);
     EnumEntry.AddValue(builder, value);
     EnumEntry.AddKey(builder, key);
     return(EnumEntry.EndEnumEntry(builder));
 }
コード例 #2
0
 public static EnumEntry GetRootAsEnumEntry(ByteBuffer _bb, EnumEntry obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }