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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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