public void ReadTransactionEntry(ref TransactionEntry transactionEntry)
 {
     if (!Unsafe.ReadStruct(binaryReader, ref transactionEntry))
     {
         throw new FileFormatException("Cannot read transaction entry");
     }
 }
Esempio n. 2
0
        public void ReadTransaction(Dictionary <uint, uint> transactionsData, ref uint cb)
        {
            var transactionEntry = new TransactionEntry();

            while (true)
            {
                oneNoteFileReader.ReadTransactionEntry(ref transactionEntry);
                cb += TransactionEntry.SizeInBytes;

                if (transactionEntry.srcID == TransactionEntry.SentinelEntryId)
                {
                    break;
                }

                transactionsData[transactionEntry.srcID] = transactionEntry.TransactionEntrySwitch;
            }
        }