public static Offset <ExchangeOfferTransactionBuffer> CreateExchangeOfferTransactionBuffer(FlatBufferBuilder builder, uint size = 0, VectorOffset signatureOffset = default(VectorOffset), VectorOffset signerOffset = default(VectorOffset), uint version = 0, ushort type = 0, VectorOffset maxFeeOffset = default(VectorOffset), VectorOffset deadlineOffset = default(VectorOffset), byte offersCount = 0, VectorOffset offersOffset = default(VectorOffset)) { builder.StartObject(9); ExchangeOfferTransactionBuffer.AddOffers(builder, offersOffset); ExchangeOfferTransactionBuffer.AddDeadline(builder, deadlineOffset); ExchangeOfferTransactionBuffer.AddMaxFee(builder, maxFeeOffset); ExchangeOfferTransactionBuffer.AddVersion(builder, version); ExchangeOfferTransactionBuffer.AddSigner(builder, signerOffset); ExchangeOfferTransactionBuffer.AddSignature(builder, signatureOffset); ExchangeOfferTransactionBuffer.AddSize(builder, size); ExchangeOfferTransactionBuffer.AddType(builder, type); ExchangeOfferTransactionBuffer.AddOffersCount(builder, offersCount); return(ExchangeOfferTransactionBuffer.EndExchangeOfferTransactionBuffer(builder)); }
public static ExchangeOfferTransactionBuffer GetRootAsExchangeOfferTransactionBuffer(ByteBuffer _bb, ExchangeOfferTransactionBuffer obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }