예제 #1
0
 public static Offset <FloatEntry> CreateFloatEntry(FlatBufferBuilder builder,
                                                    float key   = 0.0f,
                                                    float value = 1234.0f)
 {
     builder.StartObject(2);
     FloatEntry.AddValue(builder, value);
     FloatEntry.AddKey(builder, key);
     return(FloatEntry.EndFloatEntry(builder));
 }
예제 #2
0
 public static FloatEntry GetRootAsFloatEntry(ByteBuffer _bb, FloatEntry obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }