C# 클래스 NetworkCommsDotNet.Tools.StreamTools.StreamSendWrapper

Used to send all or parts of a stream. Particularly useful for sending files directly from disk etc.
상속: IDisposable
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 공개 메소드

Dispose the internal ThreadSafeStream
public Dispose ( ) : void
리턴 void

MD5CheckSum() 공개 메소드

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

StreamSendWrapper() 공개 메소드

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
리턴 System

StreamSendWrapper() 공개 메소드

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
리턴 System