예제 #1
0
 internal void ApplyTo(IFileSystemInterface fsi)
 {
     fsi.SetWritePosition(_position, false);
     
     foreach (var bytes in _listOfBytes)
         fsi.WriteBytes(bytes, false);
 }
예제 #2
0
        internal void ApplyTo(IFileSystemInterface fsi)
        {
            fsi.SetWritePosition(_position, false);

            foreach (var bytes in _listOfBytes)
            {
                fsi.WriteBytes(bytes, false);
            }
        }
예제 #3
0
        private void Persist()
        {
            CheckFileAccess(null);

            Log4NetHelper.Instance.LogDebugMessage(string.Format("OdbTransaction: # Persisting transaction {0}", GetName()));

            _fsi.SetWritePosition(0, false);
            _fsi.WriteBoolean(_isCommited, false);
            _fsi.WriteLong(_creationDateTime, false);

            // Size
            _fsi.WriteLong(0, false);
            _hasBeenPersisted = true;
        }
예제 #4
0
        private void Persist()
        {
            CheckFileAccess(null);

            if (OdbConfiguration.IsLoggingEnabled())
            {
                DLogger.Debug(string.Format("OdbTransaction: # Persisting transaction {0}", GetName()));
            }

            _fsi.SetWritePosition(0, false);
            _fsi.WriteBoolean(_isCommited, false);
            _fsi.WriteLong(_creationDateTime, false);

            // Size
            _fsi.WriteLong(0, false);
            _hasBeenPersisted = true;
        }