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

Inheritance: IDisposable
Datei anzeigen 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_oe static_oe property

protected static HashSet Caches
return HashSet

Capacity public_oe property

public int Capacity
return int

File public_oe property

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

FileLength public_oe property

public long FileLength
return long