C# Class GSF.IO.Unmanaged.BinaryStream

Inheritance: BinaryStreamPointerBase
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
CreatePool ( bool allocatesOwnMemory ) : ISupportsBinaryStream

Method Details

BinaryStream() public méthode

Creates a BinaryStream that is in memory only.
public BinaryStream ( ) : System
Résultat System

BinaryStream() public méthode

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.
Résultat System

BinaryStream() public méthode

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

BinaryStream() public méthode

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 .
Résultat System

ClearLocks() public méthode

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

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

UpdateLocalBuffer() public méthode

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