C# Class Voron.Platform.Win32.Win32MemoryMapPager

Inheritance: Voron.Impl.Paging.AbstractPager
Datei anzeigen Open project: fitzchak/ravendb Class Usage Examples

Public Properties

Property Type Description
AllocationGranularity long

Public Methods

Method Description
AcquirePagePointer ( long pageNumber, Voron.Impl.PagerState pagerState = null ) : byte*
AllocateMorePages ( Transaction tx, long newLength ) : void
Dispose ( ) : void
MaybePrefetchMemory ( List sortedPages ) : void
MaybePrefetchMemory ( List pagesToPrefetch ) : void
RefreshMappedView ( Transaction tx ) : void
ReleaseAllocationInfo ( byte baseAddress, long size ) : void
Sync ( ) : void
ToString ( ) : string
TryPrefetchingWholeFile ( ) : void
Win32MemoryMapPager ( string file, long initialFileSize = null, Win32NativeFileAttributes options = Win32NativeFileAttributes.Normal, Win32NativeFileAccess access = Win32NativeFileAccess.GenericRead|Win32NativeFileAccess.GenericWrite ) : System

Protected Methods

Method Description
GetSourceName ( ) : string

Private Methods

Method Description
CreatePagerState ( ) : Voron.Impl.PagerState
IsWindows8OrNewer ( ) : bool
NearestSizeToAllocationGranularity ( long size ) : long
RemapViewOfFileAtAddress ( long allocationSize, ulong offsetInFile, byte baseAddress ) : Voron.Impl.PagerState.AllocationInfo
TryAllocateMoreContinuousPages ( long allocationSize ) : bool

Method Details

AcquirePagePointer() public method

public AcquirePagePointer ( long pageNumber, Voron.Impl.PagerState pagerState = null ) : byte*
pageNumber long
pagerState Voron.Impl.PagerState
return byte*

AllocateMorePages() public method

public AllocateMorePages ( Transaction tx, long newLength ) : void
tx Voron.Impl.Transaction
newLength long
return void

Dispose() public method

public Dispose ( ) : void
return void

GetSourceName() protected method

protected GetSourceName ( ) : string
return string

MaybePrefetchMemory() public method

public MaybePrefetchMemory ( List sortedPages ) : void
sortedPages List
return void

MaybePrefetchMemory() public method

public MaybePrefetchMemory ( List pagesToPrefetch ) : void
pagesToPrefetch List
return void

RefreshMappedView() public method

public RefreshMappedView ( Transaction tx ) : void
tx Voron.Impl.Transaction
return void

ReleaseAllocationInfo() public method

public ReleaseAllocationInfo ( byte baseAddress, long size ) : void
baseAddress byte
size long
return void

Sync() public method

public Sync ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

TryPrefetchingWholeFile() public method

public TryPrefetchingWholeFile ( ) : void
return void

Win32MemoryMapPager() public method

public Win32MemoryMapPager ( string file, long initialFileSize = null, Win32NativeFileAttributes options = Win32NativeFileAttributes.Normal, Win32NativeFileAccess access = Win32NativeFileAccess.GenericRead|Win32NativeFileAccess.GenericWrite ) : System
file string
initialFileSize long
options Win32NativeFileAttributes
access Win32NativeFileAccess
return System

Property Details

AllocationGranularity public_oe property

public long AllocationGranularity
return long