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

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

Public Methods

Method 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

Protected Methods

Method 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 method

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

Dispose() protected method

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.
return void

TrackedMemoryStream() public method

Initializes a new instance of the TrackedMemoryStream class.
public TrackedMemoryStream ( ) : System
return System

TrackedMemoryStream() public method

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

WriteLEInt() public method

Write an int value in little endian order.
public WriteLEInt ( int value ) : void
value int
return void

WriteLEShort() public method

Write a short value in Little Endian order
public WriteLEShort ( short value ) : void
value short
return void