public static Offset <NamespaceA.TableInFirstNS> CreateTableInFirstNS(FlatBufferBuilder builder, Offset <NamespaceA.NamespaceB.TableInNestedNS> foo_tableOffset = default(Offset <NamespaceA.NamespaceB.TableInNestedNS>), NamespaceA.NamespaceB.EnumInNestedNS foo_enum = NamespaceA.NamespaceB.EnumInNestedNS.A, NamespaceA.NamespaceB.StructInNestedNST foo_struct = null) { builder.StartTable(3); TableInFirstNS.AddFooStruct(builder, NamespaceA.NamespaceB.StructInNestedNS.Pack(builder, foo_struct)); TableInFirstNS.AddFooTable(builder, foo_tableOffset); TableInFirstNS.AddFooEnum(builder, foo_enum); return(TableInFirstNS.EndTableInFirstNS(builder)); }
public bool MutateFooEnum(NamespaceA.NamespaceB.EnumInNestedNS foo_enum) { int o = __p.__offset(6); if (o != 0) { __p.bb.PutSbyte(o + __p.bb_pos, (sbyte)foo_enum); return(true); } else { return(false); } }
public static void AddFooEnum(FlatBufferBuilder builder, NamespaceA.NamespaceB.EnumInNestedNS fooEnum) { builder.AddSbyte(1, (sbyte)fooEnum, 0); }