C# 클래스 GSF.IO.FileStructure.Media.MemoryPoolFile

Provides a in memory stream that uses pages that are pooled in the unmanaged buffer pool.
상속: GSF.IO.Unmanaged.MemoryPoolStreamCore, IDiskMediumCoreFunctions
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

ChangeExtension() 공개 메소드

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.
리턴 void

ChangeShareMode() 공개 메소드

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.
리턴 void

CommitChanges() 공개 메소드

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
리턴 void

CreateIoSession() 공개 메소드

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

MemoryPoolFile() 공개 메소드

Create a new MemoryPoolFile
public MemoryPoolFile ( MemoryPool pool ) : System
pool GSF.IO.Unmanaged.MemoryPool
리턴 System

RollbackChanges() 공개 메소드

Rolls back all edits to the DiskMedium
public RollbackChanges ( ) : void
리턴 void