Example #1
0
 internal static Offset <TransferTransactionBuffer> CreateTransferTransactionBuffer(FlatBufferBuilder builder,
                                                                                    int transactionType          = 0,
                                                                                    short version                = 0,
                                                                                    short network                = 0,
                                                                                    int timestamp                = 0,
                                                                                    int publicKeyLen             = 0,
                                                                                    VectorOffset publicKeyOffset = default(VectorOffset),
                                                                                    ulong fee                    = 0,
                                                                                    int deadline                 = 0,
                                                                                    int recipientLen             = 0,
                                                                                    VectorOffset recipientOffset = default(VectorOffset),
                                                                                    long amount                  = 0,
                                                                                    int messageFieldLen          = 0,
                                                                                    VectorOffset messageOffset   = default(VectorOffset),
                                                                                    int noOfMosaics              = 0,
                                                                                    VectorOffset mosaicsOffset   = default(VectorOffset))
 {
     builder.StartObject(15);
     TransferTransactionBuffer.AddAmount(builder, amount);
     TransferTransactionBuffer.AddFee(builder, fee);
     TransferTransactionBuffer.AddMosaics(builder, mosaicsOffset);
     TransferTransactionBuffer.AddNoOfMosaics(builder, noOfMosaics);
     TransferTransactionBuffer.AddMessage(builder, messageOffset);
     TransferTransactionBuffer.AddMessageFieldLen(builder, messageFieldLen);
     TransferTransactionBuffer.AddRecipient(builder, recipientOffset);
     TransferTransactionBuffer.AddRecipientLen(builder, recipientLen);
     TransferTransactionBuffer.AddDeadline(builder, deadline);
     TransferTransactionBuffer.AddPublicKey(builder, publicKeyOffset);
     TransferTransactionBuffer.AddPublicKeyLen(builder, publicKeyLen);
     TransferTransactionBuffer.AddTimestamp(builder, timestamp);
     TransferTransactionBuffer.AddTransactionType(builder, transactionType);
     TransferTransactionBuffer.AddNetwork(builder, network);
     TransferTransactionBuffer.AddVersion(builder, version);
     return(TransferTransactionBuffer.EndTransferTransactionBuffer(builder));
 }
Example #2
0
 internal static TransferTransactionBuffer GetRootAsTransferTransactionBuffer(ByteBuffer _bb, TransferTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }