Esempio n. 1
0
 public static Offset <AggregateTransactionBuffer> CreateAggregateTransactionBuffer(FlatBufferBuilder builder,
                                                                                    uint size = 0,
                                                                                    VectorOffset signatureOffset = default(VectorOffset),
                                                                                    VectorOffset signerOffset    = default(VectorOffset),
                                                                                    ushort version                  = 0,
                                                                                    ushort type                     = 0,
                                                                                    VectorOffset feeOffset          = default(VectorOffset),
                                                                                    VectorOffset deadlineOffset     = default(VectorOffset),
                                                                                    uint transactionsSize           = 0,
                                                                                    VectorOffset transactionsOffset = default(VectorOffset))
 {
     builder.StartObject(9);
     AggregateTransactionBuffer.AddTransactions(builder, transactionsOffset);
     AggregateTransactionBuffer.AddTransactionsSize(builder, transactionsSize);
     AggregateTransactionBuffer.AddDeadline(builder, deadlineOffset);
     AggregateTransactionBuffer.AddFee(builder, feeOffset);
     AggregateTransactionBuffer.AddSigner(builder, signerOffset);
     AggregateTransactionBuffer.AddSignature(builder, signatureOffset);
     AggregateTransactionBuffer.AddSize(builder, size);
     AggregateTransactionBuffer.AddType(builder, type);
     AggregateTransactionBuffer.AddVersion(builder, version);
     return(AggregateTransactionBuffer.EndAggregateTransactionBuffer(builder));
 }
Esempio n. 2
0
 public static AggregateTransactionBuffer GetRootAsAggregateTransactionBuffer(ByteBuffer _bb, AggregateTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }