Пример #1
0
 public static Offset <AggregateTransactionBuffer> CreateAggregateTransactionBuffer(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),
                                                                                    uint transactionsSize           = 0,
                                                                                    VectorOffset transactionsOffset = default(VectorOffset))
 {
     builder.StartObject(9);
     AggregateTransactionBuffer.AddTransactions(builder, transactionsOffset);
     AggregateTransactionBuffer.AddTransactionsSize(builder, transactionsSize);
     AggregateTransactionBuffer.AddDeadline(builder, deadlineOffset);
     AggregateTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     AggregateTransactionBuffer.AddVersion(builder, version);
     AggregateTransactionBuffer.AddSigner(builder, signerOffset);
     AggregateTransactionBuffer.AddSignature(builder, signatureOffset);
     AggregateTransactionBuffer.AddSize(builder, size);
     AggregateTransactionBuffer.AddType(builder, type);
     return(AggregateTransactionBuffer.EndAggregateTransactionBuffer(builder));
 }
Пример #2
0
 public static AggregateTransactionBuffer GetRootAsAggregateTransactionBuffer(ByteBuffer _bb, AggregateTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }