C# 클래스 CmisSync.Lib.Streams.StreamWrapper

The stream wrapper class is used to hide a given stream and provide a wrapper to be overridden by other stream extending classes without the need of the implementing class to implement each function of the Stream interface
상속: Stream
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync

공개 메소드들

메소드 설명
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult

Begins the read on the wrapped instance.

Flush ( ) : void

Flush the wrapped instance.

Read ( byte buffer, int offset, int count ) : int

Read the specified buffer, offset and count.

Seek ( long offset, SeekOrigin origin ) : long

Seeks on the wrapped instance with the specified offset and origin.

SetLength ( long value ) : void

Sets the length of the wrapped instance.

StreamWrapper ( Stream stream ) : System

Initializes a new instance of the CmisSync.Lib.Streams.StreamWrapper class. Takes a stream and wrapps all calls.

Write ( byte buffer, int offset, int count ) : void

Write the specified buffer, offset and count.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Dispose the wrapper instance, not the wrapped stream object.

메소드 상세

BeginRead() 공개 메소드

Begins the read on the wrapped instance.
public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte /// Buffer passed to the wrapped instance. ///
offset int /// Offset passed to the wrapped instance. ///
count int /// Count passed to the wrapped instance. ///
callback AsyncCallback /// Callback passed to the wrapped instance. ///
state object /// State passed to the wrapped instance. ///
리턴 IAsyncResult

Dispose() 보호된 메소드

Dispose the wrapper instance, not the wrapped stream object.
protected Dispose ( bool disposing ) : void
disposing bool /// Disposes the wrapper object. ///
리턴 void

Flush() 공개 메소드

Flush the wrapped instance.
public Flush ( ) : void
리턴 void

Read() 공개 메소드

Read the specified buffer, offset and count.
public Read ( byte buffer, int offset, int count ) : int
buffer byte /// Buffer passed to the wrapped instance. ///
offset int /// Offset passed to the wrapped instance. ///
count int /// Count passed to the wrapped instance. ///
리턴 int

Seek() 공개 메소드

Seeks on the wrapped instance with the specified offset and origin.
public Seek ( long offset, SeekOrigin origin ) : long
offset long /// Offset passed to the wrapped instance. ///
origin SeekOrigin /// Origin passed to the wrapped instance. ///
리턴 long

SetLength() 공개 메소드

Sets the length of the wrapped instance.
public SetLength ( long value ) : void
value long /// Value passed to the wrapped instance. ///
리턴 void

StreamWrapper() 공개 메소드

Initializes a new instance of the CmisSync.Lib.Streams.StreamWrapper class. Takes a stream and wrapps all calls.
public StreamWrapper ( Stream stream ) : System
stream Stream /// Stream to be wrapped. ///
리턴 System

Write() 공개 메소드

Write the specified buffer, offset and count.
public Write ( byte buffer, int offset, int count ) : void
buffer byte /// Buffer passed to the wrapped instance. ///
offset int /// Offset passed to the wrapped instance. ///
count int /// Count passed to the wrapped instance. ///
리턴 void