Exemplo n.º 1
0
 public static Offset <AddExchangeOfferTransactionBuffer> CreateAddExchangeOfferTransactionBuffer(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);
     AddExchangeOfferTransactionBuffer.AddOffers(builder, offersOffset);
     AddExchangeOfferTransactionBuffer.AddDeadline(builder, deadlineOffset);
     AddExchangeOfferTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     AddExchangeOfferTransactionBuffer.AddVersion(builder, version);
     AddExchangeOfferTransactionBuffer.AddSigner(builder, signerOffset);
     AddExchangeOfferTransactionBuffer.AddSignature(builder, signatureOffset);
     AddExchangeOfferTransactionBuffer.AddSize(builder, size);
     AddExchangeOfferTransactionBuffer.AddType(builder, type);
     AddExchangeOfferTransactionBuffer.AddOffersCount(builder, offersCount);
     return(AddExchangeOfferTransactionBuffer.EndAddExchangeOfferTransactionBuffer(builder));
 }
Exemplo n.º 2
0
 public static AddExchangeOfferTransactionBuffer GetRootAsAddExchangeOfferTransactionBuffer(ByteBuffer _bb, AddExchangeOfferTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }