C# Class GSF.IO.Unmanaged.BinaryStream

Inheritance: BinaryStreamPointerBase
Datei anzeigen Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

Method Description
BinaryStream ( ) : System

Creates a BinaryStream that is in memory only.

BinaryStream ( ISupportsBinaryStream stream, bool leaveOpen = true ) : System

Creates a BinaryStream that is at position 0 of the provided stream.

BinaryStream ( MemoryPool pool ) : System

Creates a BinaryStream that is in memory only.

BinaryStream ( bool allocatesOwnMemory ) : System

Creates a BinaryStream that is in memory only.

ClearLocks ( ) : void

When accessing the underlying stream, a lock is placed on the data. Calling this method clears that lock.

UpdateLocalBuffer ( bool isWriting ) : void

Updates the local buffer data.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CreatePool ( bool allocatesOwnMemory ) : ISupportsBinaryStream

Method Details

BinaryStream() public method

Creates a BinaryStream that is in memory only.
public BinaryStream ( ) : System
return System

BinaryStream() public method

Creates a BinaryStream that is at position 0 of the provided stream.
public BinaryStream ( ISupportsBinaryStream stream, bool leaveOpen = true ) : System
stream ISupportsBinaryStream The base stream to use.
leaveOpen bool Determines if the underlying stream will automatically be /// disposed of when this class has it's dispose method called.
return System

BinaryStream() public method

Creates a BinaryStream that is in memory only.
public BinaryStream ( MemoryPool pool ) : System
pool MemoryPool
return System

BinaryStream() public method

Creates a BinaryStream that is in memory only.
public BinaryStream ( bool allocatesOwnMemory ) : System
allocatesOwnMemory bool true to allowcate its own memory rather than using the .
return System

ClearLocks() public method

When accessing the underlying stream, a lock is placed on the data. Calling this method clears that lock.
public ClearLocks ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

UpdateLocalBuffer() public method

Updates the local buffer data.
public UpdateLocalBuffer ( bool isWriting ) : void
isWriting bool hints to the stream if write access is desired.
return void