C# Class NetworkCommsDotNet.Tools.StreamTools.StreamSendWrapper

Used to send all or parts of a stream. Particularly useful for sending files directly from disk etc.
Inheritance: IDisposable
ファイルを表示 Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Dispose the internal ThreadSafeStream

MD5CheckSum ( ) : string

Return the MD5 for the specific part of the stream only.

StreamSendWrapper ( ThreadSafeStream stream ) : System

Create a new stream wrapper and set Start and Length to encompass the entire Stream

StreamSendWrapper ( ThreadSafeStream stream, long start, long length ) : System

Create a new stream wrapper

Method Details

Dispose() public method

Dispose the internal ThreadSafeStream
public Dispose ( ) : void
return void

MD5CheckSum() public method

Return the MD5 for the specific part of the stream only.
public MD5CheckSum ( ) : string
return string

StreamSendWrapper() public method

Create a new stream wrapper and set Start and Length to encompass the entire Stream
public StreamSendWrapper ( ThreadSafeStream stream ) : System
stream ThreadSafeStream The underlying stream
return System

StreamSendWrapper() public method

Create a new stream wrapper
public StreamSendWrapper ( ThreadSafeStream stream, long start, long length ) : System
stream ThreadSafeStream The underlying stream
start long The start position from where to read data
length long The length to read
return System