Exemplo n.º 1
0
        public override Boolean WritePosition(Byte[] myByteArray, UInt64 myPhysicalPosition)
        {
            PrepareAccess(myPhysicalPosition, myByteArray.ULongCount());

            #region write at logical position

            try
            {
                lock (_SlideLock)
                {
                    var logicalPosition = GetLogicalPositionInWindow(myPhysicalPosition);

                    _Window.WriteArray((int)logicalPosition, myByteArray, 0, myByteArray.Length);
                }
            }
            catch
            {
                throw new StorageEngineException(String.Format("Writing to MemoryMappedFileStorage {0} failed", _StorageLocation));
            }

            #endregion

            return true;
        }