Ejemplo n.º 1
0
//C++ TO C# CONVERTER TODO TASK: The implementation of the following method could not be found:
//  WalletSerializerV2(ITransfersObserver transfersObserver, Crypto::PublicKey viewPublicKey, Crypto::SecretKey viewSecretKey, ref ulong actualBalance, ref ulong pendingBalance, WalletsContainer walletsContainer, TransfersSyncronizer synchronizer, UnlockTransactionJobs unlockTransactions, WalletTransactions transactions, WalletTransfers transfers, UncommitedTransactions uncommitedTransactions, string extra, uint transactionSoftLockTime);

        public void load(Common.IInputStream source, byte version)
        {
            CryptoNote.BinaryInputStreamSerializer s = new CryptoNote.BinaryInputStreamSerializer(source);

            byte saveLevelValue;

            s.functorMethod(saveLevelValue, "saveLevel");
            WalletSaveLevel saveLevel = (WalletSaveLevel)saveLevelValue;

            loadKeyListAndBalances(s.functorMethod, saveLevel == WalletSaveLevel.SAVE_ALL);

            if (saveLevel == WalletSaveLevel.SAVE_KEYS_AND_TRANSACTIONS || saveLevel == WalletSaveLevel.SAVE_ALL)
            {
                loadTransactions(s.functorMethod);
                loadTransfers(s.functorMethod);
            }

            if (saveLevel == WalletSaveLevel.SAVE_ALL)
            {
                loadTransfersSynchronizer(s.functorMethod);
                loadUnlockTransactionsJobs(s.functorMethod);
                s.functorMethod(m_uncommitedTransactions, "uncommitedTransactions");
            }

            s.functorMethod(m_extra, "extra");
        }
 public BinaryInputStreamSerializer(Common.IInputStream strm)
 {
     this.stream = strm;
 }
Ejemplo n.º 3
0
 public KVBinaryInputStreamSerializer(Common.IInputStream strm) : base.functorMethod(parseBinary(strm))