예제 #1
0
 public static Offset <TestTableWithUnionAndMoreFields> CreateTestTableWithUnionAndMoreFields(FlatBufferBuilder builder,
                                                                                              int IntProp = 0,
                                                                                              TestUnion UnionProp_type      = TestUnion.NONE,
                                                                                              int UnionPropOffset           = 0,
                                                                                              StringOffset StringPropOffset = default(StringOffset),
                                                                                              float FloatProp   = 0,
                                                                                              double DoubleProp = 0)
 {
     builder.StartObject(6);
     TestTableWithUnionAndMoreFields.AddDoubleProp(builder, DoubleProp);
     TestTableWithUnionAndMoreFields.AddFloatProp(builder, FloatProp);
     TestTableWithUnionAndMoreFields.AddStringProp(builder, StringPropOffset);
     TestTableWithUnionAndMoreFields.AddUnionProp(builder, UnionPropOffset);
     TestTableWithUnionAndMoreFields.AddIntProp(builder, IntProp);
     TestTableWithUnionAndMoreFields.AddUnionPropType(builder, UnionProp_type);
     return(TestTableWithUnionAndMoreFields.EndTestTableWithUnionAndMoreFields(builder));
 }
예제 #2
0
 public static TestTableWithUnionAndMoreFields GetRootAsTestTableWithUnionAndMoreFields(ByteBuffer _bb, TestTableWithUnionAndMoreFields obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }