Class TrackedMemoryStream
An extended
Namespace: ICSharpCode.SharpZipLib.Tests.TestSupport
Syntax
public class TrackedMemoryStream : MemoryStream
Constructors
TrackedMemoryStream()
Initializes a new instance of the TrackedMemoryStream class.
Declaration
public TrackedMemoryStream()
TrackedMemoryStream(Byte[])
Initializes a new instance of the TrackedMemoryStream class.
Declaration
public TrackedMemoryStream(byte[] buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| Byte[] | buffer | The buffer. |
Properties
IsClosed
Gets a value indicating whether this instance is closed.
Declaration
public bool IsClosed { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsDisposed
Gets a value indicating whether this instance is disposed.
Declaration
public bool IsDisposed { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Methods
Close()
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
Declaration
public override void Close()
Dispose(Boolean)
Releases the unmanaged resources used by the MemoryStream class and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
WriteLEInt(Int32)
Write an int value in little endian order.
Declaration
public void WriteLEInt(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | value |
WriteLEShort(Int16)
Write a short value in Little Endian order
Declaration
public void WriteLEShort(short value)
Parameters
| Type | Name | Description |
|---|---|---|
| Int16 | value |