C# Class CmisSync.Lib.Streams.ChunkedStream

Chunked stream.
Inheritance: Stream
Exibir arquivo Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
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.

Method Details

ChunkedStream() public method

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.
return System

Flush() public method

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

Read() public method

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.
return int

Seek() public method

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

SetLength() public method

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.
return void

Write() public method

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.
return void