Beispiel #1
0
 public static Offset <UnionTable> CreateUnionTable(FlatBufferBuilder builder,
                                                    Union Value_type = Union.NONE,
                                                    int ValueOffset  = 0)
 {
     builder.StartObject(2);
     UnionTable.AddValue(builder, ValueOffset);
     UnionTable.AddValueType(builder, Value_type);
     return(UnionTable.EndUnionTable(builder));
 }
Beispiel #2
0
 public static Offset <FlatSharpTests.Oracle.UnionTable> CreateUnionTable(FlatBufferBuilder builder,
                                                                          FlatSharpTests.Oracle.Union Value_type = FlatSharpTests.Oracle.Union.NONE,
                                                                          int ValueOffset = 0)
 {
     builder.StartTable(2);
     UnionTable.AddValue(builder, ValueOffset);
     UnionTable.AddValueType(builder, Value_type);
     return(UnionTable.EndUnionTable(builder));
 }
Beispiel #3
0
 public static UnionTable GetRootAsUnionTable(ByteBuffer _bb, UnionTable obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }