示例#1
0
 public static Offset <AddExchangeOfferBuffer> CreateAddExchangeOfferBuffer(FlatBufferBuilder builder,
                                                                            VectorOffset mosaicIdOffset     = default(VectorOffset),
                                                                            VectorOffset mosaicAmountOffset = default(VectorOffset),
                                                                            VectorOffset costOffset         = default(VectorOffset),
                                                                            byte type = 0,
                                                                            VectorOffset durationOffset = default(VectorOffset))
 {
     builder.StartObject(5);
     AddExchangeOfferBuffer.AddDuration(builder, durationOffset);
     AddExchangeOfferBuffer.AddCost(builder, costOffset);
     AddExchangeOfferBuffer.AddMosaicAmount(builder, mosaicAmountOffset);
     AddExchangeOfferBuffer.AddMosaicId(builder, mosaicIdOffset);
     AddExchangeOfferBuffer.AddType(builder, type);
     return(AddExchangeOfferBuffer.EndAddExchangeOfferBuffer(builder));
 }
示例#2
0
 public static AddExchangeOfferBuffer GetRootAsAddExchangeOfferBuffer(ByteBuffer _bb, AddExchangeOfferBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }