C# Class GSF.IO.FileStructure.Media.MemoryPoolFile

Provides a in memory stream that uses pages that are pooled in the unmanaged buffer pool.
Inheritance: GSF.IO.Unmanaged.MemoryPoolStreamCore, IDiskMediumCoreFunctions
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode Description
ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void

Changes the extension of the current file.

ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void

Reopens the file with different permissions.

CommitChanges ( FileHeaderBlock headerBlock ) : void

Executes a commit of data. This will flush the data to the disk use the provided header data to properly execute this function.

CreateIoSession ( ) : BinaryStreamIoSessionBase

Creates a BinaryStreamIoSessionBase that can be used to read from this disk medium.

MemoryPoolFile ( MemoryPool pool ) : System

Create a new MemoryPoolFile

RollbackChanges ( ) : void

Rolls back all edits to the DiskMedium

Method Details

ChangeExtension() public méthode

Changes the extension of the current file.
public ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void
extension string the new extension
isReadOnly bool If the file should be reopened as readonly
isSharingEnabled bool If the file should share read privileges.
Résultat void

ChangeShareMode() public méthode

Reopens the file with different permissions.
public ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void
isReadOnly bool If the file should be reopened as readonly
isSharingEnabled bool If the file should share read privileges.
Résultat void

CommitChanges() public méthode

Executes a commit of data. This will flush the data to the disk use the provided header data to properly execute this function.
public CommitChanges ( FileHeaderBlock headerBlock ) : void
headerBlock FileHeaderBlock
Résultat void

CreateIoSession() public méthode

Creates a BinaryStreamIoSessionBase that can be used to read from this disk medium.
public CreateIoSession ( ) : BinaryStreamIoSessionBase
Résultat GSF.IO.Unmanaged.BinaryStreamIoSessionBase

MemoryPoolFile() public méthode

Create a new MemoryPoolFile
public MemoryPoolFile ( MemoryPool pool ) : System
pool GSF.IO.Unmanaged.MemoryPool
Résultat System

RollbackChanges() public méthode

Rolls back all edits to the DiskMedium
public RollbackChanges ( ) : void
Résultat void