public static Offset <FlatSharpTests.Oracle.LocationHolder> CreateLocationHolder(FlatBufferBuilder builder,
                                                                                  FlatSharpTests.Oracle.LocationT SingleLocation = null,
                                                                                  StringOffset FakeOffset           = default(StringOffset),
                                                                                  VectorOffset LocationVectorOffset = default(VectorOffset))
 {
     builder.StartTable(3);
     LocationHolder.AddLocationVector(builder, LocationVectorOffset);
     LocationHolder.AddFake(builder, FakeOffset);
     LocationHolder.AddSingleLocation(builder, FlatSharpTests.Oracle.Location.Pack(builder, SingleLocation));
     return(LocationHolder.EndLocationHolder(builder));
 }
Beispiel #2
0
 public static LocationHolder GetRootAsLocationHolder(ByteBuffer _bb, LocationHolder obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }