C# Class ICSharpCode.SharpZipLib.Tests.TestSupport.TrackedMemoryStream

An extended memory stream that tracks closing and disposing
Inheritance: System.IO.MemoryStream
Afficher le fichier Open project: icsharpcode/SharpZipLib Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.

TrackedMemoryStream ( ) : System

Initializes a new instance of the TrackedMemoryStream class.

TrackedMemoryStream ( byte buffer ) : System

Initializes a new instance of the TrackedMemoryStream class.

WriteLEInt ( int value ) : void

Write an int value in little endian order.

WriteLEShort ( short value ) : void

Write a short value in Little Endian order

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.MemoryStream class and optionally releases the managed resources.

Method Details

Close() public méthode

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
public Close ( ) : void
Résultat void

Dispose() protected méthode

Releases the unmanaged resources used by the T:System.IO.MemoryStream class and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

TrackedMemoryStream() public méthode

Initializes a new instance of the TrackedMemoryStream class.
public TrackedMemoryStream ( ) : System
Résultat System

TrackedMemoryStream() public méthode

Initializes a new instance of the TrackedMemoryStream class.
public TrackedMemoryStream ( byte buffer ) : System
buffer byte The buffer.
Résultat System

WriteLEInt() public méthode

Write an int value in little endian order.
public WriteLEInt ( int value ) : void
value int
Résultat void

WriteLEShort() public méthode

Write a short value in Little Endian order
public WriteLEShort ( short value ) : void
value short
Résultat void