public static Offset <ExchangeOfferBuffer> CreateExchangeOfferBuffer(FlatBufferBuilder builder,
                                                                      VectorOffset mosaicIdOffset     = default(VectorOffset),
                                                                      VectorOffset mosaicAmountOffset = default(VectorOffset),
                                                                      VectorOffset costOffset         = default(VectorOffset),
                                                                      byte type = 0,
                                                                      VectorOffset ownerOffset = default(VectorOffset))
 {
     builder.StartObject(5);
     ExchangeOfferBuffer.AddOwner(builder, ownerOffset);
     ExchangeOfferBuffer.AddCost(builder, costOffset);
     ExchangeOfferBuffer.AddMosaicAmount(builder, mosaicAmountOffset);
     ExchangeOfferBuffer.AddMosaicId(builder, mosaicIdOffset);
     ExchangeOfferBuffer.AddType(builder, type);
     return(ExchangeOfferBuffer.EndExchangeOfferBuffer(builder));
 }
 public static ExchangeOfferBuffer GetRootAsExchangeOfferBuffer(ByteBuffer _bb, ExchangeOfferBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }