Beispiel #1
0
 public static Offset <ReactiveMarkets.PlatformApi.MDSnapshotL2> CreateMDSnapshotL2(FlatBufferBuilder builder,
                                                                                    long source_ts            = 0,
                                                                                    StringOffset sourceOffset = default(StringOffset),
                                                                                    StringOffset marketOffset = default(StringOffset),
                                                                                    int feed_id  = 0,
                                                                                    long id      = 0,
                                                                                    short depth  = 0,
                                                                                    ushort flags = 0,
                                                                                    VectorOffset bid_sideOffset   = default(VectorOffset),
                                                                                    VectorOffset offer_sideOffset = default(VectorOffset))
 {
     builder.StartTable(9);
     MDSnapshotL2.AddId(builder, id);
     MDSnapshotL2.AddSourceTs(builder, source_ts);
     MDSnapshotL2.AddOfferSide(builder, offer_sideOffset);
     MDSnapshotL2.AddBidSide(builder, bid_sideOffset);
     MDSnapshotL2.AddFeedId(builder, feed_id);
     MDSnapshotL2.AddMarket(builder, marketOffset);
     MDSnapshotL2.AddSource(builder, sourceOffset);
     MDSnapshotL2.AddFlags(builder, flags);
     MDSnapshotL2.AddDepth(builder, depth);
     return(MDSnapshotL2.EndMDSnapshotL2(builder));
 }
Beispiel #2
0
 public static MDSnapshotL2 GetRootAsMDSnapshotL2(ByteBuffer _bb, MDSnapshotL2 obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }