C# Class Squared.Data.Mangler.Internal.ViewCache

Inheritance: IDisposable
Show file Open project: sq/DataMangler Class Usage Examples

Public Properties

Property Type Description
Capacity int
File System.IO.MemoryMappedFiles.MemoryMappedFile
FileLength long

Protected Properties

Property Type Description
Caches HashSet

Public Methods

Method Description
CreateView ( long offset, uint size, MemoryMappedFileAccess access ) : CacheEntry
CreateViewUncached ( long offset, uint size, MemoryMappedFileAccess access, long &actualOffset, uint &actualSize ) : MemoryMappedViewAccessor
Dispose ( ) : void
EmergencyFlush ( ) : void
Flush ( ) : void
ViewCache ( MemoryMappedFile file, long fileLength, int capacity = 4 ) : System

Method Details

CreateView() public method

public CreateView ( long offset, uint size, MemoryMappedFileAccess access ) : CacheEntry
offset long
size uint
access MemoryMappedFileAccess
return CacheEntry

CreateViewUncached() public method

public CreateViewUncached ( long offset, uint size, MemoryMappedFileAccess access, long &actualOffset, uint &actualSize ) : MemoryMappedViewAccessor
offset long
size uint
access MemoryMappedFileAccess
actualOffset long
actualSize uint
return System.IO.MemoryMappedFiles.MemoryMappedViewAccessor

Dispose() public method

public Dispose ( ) : void
return void

EmergencyFlush() public static method

public static EmergencyFlush ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

ViewCache() public method

public ViewCache ( MemoryMappedFile file, long fileLength, int capacity = 4 ) : System
file System.IO.MemoryMappedFiles.MemoryMappedFile
fileLength long
capacity int
return System

Property Details

Caches protected static property

protected static HashSet Caches
return HashSet

Capacity public property

public int Capacity
return int

File public property

public MemoryMappedFile,System.IO.MemoryMappedFiles File
return System.IO.MemoryMappedFiles.MemoryMappedFile

FileLength public property

public long FileLength
return long