The StreamTools ThreadSafeStream type exposes the following members.
Back to Top
Methods
Name | Description | |
---|---|---|
BeginRead | Begins an asynchronous read operation. (Inherited from Stream.) | |
BeginWrite | Begins an asynchronous write operation. (Inherited from Stream.) | |
Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. (Inherited from Stream.) | |
CopyTo(Stream) | Reads the bytes from the current stream and writes them to the destination stream. (Inherited from Stream.) | |
CopyTo(Stream, Int32) | Reads all the bytes from the current stream and writes them to a destination stream, using a specified buffer size. (Inherited from Stream.) | |
CopyTo(Stream, Int64, Int64, Int32, Double, Int32) |
Copies data specified by start and length properties from internal stream to the provided stream.
| |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
CreateWaitHandle | Obsolete. Allocates a WaitHandle object. (Inherited from Stream.) | |
Dispose |
Disposes the internal stream if DiposeInnerStreamOnDispose is true.
Use Close() to close the inner stream regardless of DiposeInnerStreamOnDispose.
| |
Dispose(Boolean) |
Disposes the internal stream. If DiposeInnerStreamOnDispose is false, forceDispose
must be true to dispose of the internal stream.
| |
EndRead | Waits for the pending asynchronous read to complete. (Inherited from Stream.) | |
EndWrite | Ends an asynchronous write operation. (Inherited from Stream.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Flush | When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Overrides Stream Flush .) | |
GetBuffer |
Attempts to return the buffer associated with the internal stream. In certain circumstances this is more efficient
than copying the stream contents into a new buffer using ToArray. If the internal stream is not a memory stream
will throw InvalidCastException. If access to the buffer is not allowed will throw an UnauthorizedAccessException.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
MD5 |
Return the MD5 hash of the current StreamTools ThreadSafeStream as a string
| |
MD5(Int64, Int32) |
Return the MD5 hash of part of the current StreamTools ThreadSafeStream as a string
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
ObjectInvariant | Provides support for a Contract. (Inherited from Stream.) | |
Read | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Overrides Stream Read( Byte , Int32, Int32).) | |
ReadByte | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. (Inherited from Stream.) | |
Seek | When overridden in a derived class, sets the position within the current stream. (Overrides Stream Seek(Int64, SeekOrigin).) | |
SetLength | When overridden in a derived class, sets the length of the current stream. (Overrides Stream SetLength(Int64).) | |
ToArray(Int32) |
Returns data from entire Stream
| |
ToArray(Int64, Int64, Int32, Int32) |
Returns data from the specified portion of Stream
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Write( Byte , Int64) |
Writes the provided buffer to the internal stream starting at the provided position within the internal stream
| |
Write( Byte , Int32, Int32) | When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Overrides Stream Write( Byte , Int32, Int32).) | |
WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from Stream.) |
See Also