C# 클래스 GSF.IO.Unmanaged.MemoryPoolStreamCore

Provides a dynamically sizing sequence of unmanaged data.
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
ConfigureAlignment ( long startPosition ) : void

Configure the natural alignment of the data.

ConfigureAlignment ( long startPosition, int alignment ) : void

Configure the natural alignment of the data.

CopyTo ( long position, IntPtr dest, int length ) : void
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetBlock ( BlockArguments args ) : void

Gets a block for the following Io session.

MemoryPoolStreamCore ( ) : System

Creates a new MemoryPoolStreamCore using the default MemoryPool.

MemoryPoolStreamCore ( MemoryPool pool ) : System

Create a new MemoryPoolStreamCore

ReadBlock ( long position, IntPtr &pointer, int &validLength ) : void

Reads from the underlying stream the requested set of data. This function is more user friendly than calling GetBlock().

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the MemoryFile object and optionally releases the managed resources.

GetPage ( long position ) : IntPtr

Returns the page that corresponds to the absolute position. This function will also autogrow the stream.

IncreasePageCount ( int pageCount ) : void

Increases the size of the Memory Stream and updated the settings if needed

메소드 상세

ConfigureAlignment() 공개 메소드

Configure the natural alignment of the data.
public ConfigureAlignment ( long startPosition ) : void
startPosition long The first addressable position
리턴 void

ConfigureAlignment() 공개 메소드

Configure the natural alignment of the data.
public ConfigureAlignment ( long startPosition, int alignment ) : void
startPosition long The first addressable position
alignment int Forces alignment on this boundary. /// Alignment must be a factor of the BufferPool's page boudary.
리턴 void

CopyTo() 공개 메소드

public CopyTo ( long position, IntPtr dest, int length ) : void
position long
dest IntPtr
length int
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

GetBlock() 공개 메소드

Gets a block for the following Io session.
public GetBlock ( BlockArguments args ) : void
args BlockArguments
리턴 void

MemoryPoolStreamCore() 공개 메소드

Creates a new MemoryPoolStreamCore using the default MemoryPool.
public MemoryPoolStreamCore ( ) : System
리턴 System

MemoryPoolStreamCore() 공개 메소드

Create a new MemoryPoolStreamCore
public MemoryPoolStreamCore ( MemoryPool pool ) : System
pool MemoryPool
리턴 System

ReadBlock() 공개 메소드

Reads from the underlying stream the requested set of data. This function is more user friendly than calling GetBlock().
public ReadBlock ( long position, IntPtr &pointer, int &validLength ) : void
position long the starting position of the read
pointer IntPtr an output pointer to .
validLength int the number of bytes that are valid after this position.
리턴 void