Exemplo n.º 1
0
        protected virtual void WriteTransactionPointer(Transaction systemTransaction, int
                                                       transactionPointer, int address, int offset)
        {
            StatefulBuffer bytes = new StatefulBuffer(systemTransaction, address, TransactionPointerLength
                                                      );

            bytes.MoveForward(offset);
            bytes.WriteInt(transactionPointer);
            bytes.WriteInt(transactionPointer);
            // Dangerous write.
            // On corruption transaction pointers will not be the same and nothing will happen.
            bytes.Write();
        }
Exemplo n.º 2
0
 protected virtual void WriteTransactionPointer(Transaction systemTransaction, int
     transactionPointer, int address, int offset)
 {
     var bytes = new StatefulBuffer(systemTransaction, address, TransactionPointerLength
         );
     bytes.MoveForward(offset);
     bytes.WriteInt(transactionPointer);
     bytes.WriteInt(transactionPointer);
     // Dangerous write. 
     // On corruption transaction pointers will not be the same and nothing will happen.
     bytes.Write();
 }