C# Класс CmisSync.Lib.Streams.ChunkedStream

Chunked stream.
Наследование: Stream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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