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

Chunked stream.
상속: Stream
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync 1 사용 예제들

공개 메소드들

메소드 설명
ChunkedStream ( Stream stream, long chunk ) : System

Initializes a new instance of the CmisSync.Lib.ChunkedStream class.

Flush ( ) : void

Flush all data of the source stream.

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

Read the specified buffer from the given offset and with the length of count.

Seek ( long offset, SeekOrigin origin ) : long

Seek the specified offset and origin.

SetLength ( long value ) : void

Sets the length. Is not implemented at correctly. It simply passes the call to the source stream.

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

Write the specified buffer from the given offset and the count.

메소드 상세

ChunkedStream() 공개 메소드

Initializes a new instance of the CmisSync.Lib.ChunkedStream class.
public ChunkedStream ( Stream stream, long chunk ) : System
stream Stream Stream to chunk.
chunk long The chunksize.
리턴 System

Flush() 공개 메소드

Flush all data of the source stream.
public Flush ( ) : void
리턴 void

Read() 공개 메소드

Read the specified buffer from the given offset and with the length of count.
public Read ( byte buffer, int offset, int count ) : int
buffer byte The buffer to read.
offset int Offset to start reading.
count int Count of bytes.
리턴 int

Seek() 공개 메소드

Seek the specified offset and origin.
public Seek ( long offset, SeekOrigin origin ) : long
offset long The Offset.
origin SeekOrigin The Origin.
리턴 long

SetLength() 공개 메소드

Sets the length. Is not implemented at correctly. It simply passes the call to the source stream.
public SetLength ( long value ) : void
value long The length to set.
리턴 void

Write() 공개 메소드

Write the specified buffer from the given offset and the count.
public Write ( byte buffer, int offset, int count ) : void
buffer byte The buffer to write.
offset int Offset to start writing.
count int Count of bytes.
리턴 void