Exemplo n.º 1
0
            private AbstractPager GetTempMemoryMapPager(PureMemoryStorageEnvironmentOptions options, VoronPathSetting path, long?intialSize, Win32NativeFileAttributes win32NativeFileAttributes)
            {
                var pager = GetTempMemoryMapPagerInternal(options, path, intialSize,
                                                          Win32NativeFileAttributes.RandomAccess | Win32NativeFileAttributes.DeleteOnClose | Win32NativeFileAttributes.Temporary);

                return(EncryptionEnabled == false
                    ? pager
                    : new CryptoPager(pager));
            }
Exemplo n.º 2
0
            private AbstractPager GetTempMemoryMapPagerInternal(PureMemoryStorageEnvironmentOptions options, VoronPathSetting path, long?intialSize, Win32NativeFileAttributes win32NativeFileAttributes)
            {
                if (RunningOnPosix)
                {
                    if (RunningOn32Bits)
                    {
                        return(new PosixTempMemoryMapPager(options, path, intialSize)); // need to change to 32 bit pager
                    }
                    return(new PosixTempMemoryMapPager(options, path, intialSize));
                }
                if (RunningOn32Bits)
                {
                    return(new Windows32BitsMemoryMapPager(options, path, intialSize,
                                                           Win32NativeFileAttributes.RandomAccess | Win32NativeFileAttributes.DeleteOnClose | Win32NativeFileAttributes.Temporary));
                }

                return(new WindowsMemoryMapPager(options, path, intialSize,
                                                 Win32NativeFileAttributes.RandomAccess | Win32NativeFileAttributes.DeleteOnClose | Win32NativeFileAttributes.Temporary));
            }