C# Class CmisSync.Lib.Streams.ChunkedStream

Chunked stream.
Inheritance: Stream
Afficher le fichier Open project: OpenDataSpace/CmisSync Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Flush() public méthode

Flush all data of the source stream.
public Flush ( ) : void
Résultat void

Read() public méthode

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.
Résultat int

Seek() public méthode

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

SetLength() public méthode

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.
Résultat void

Write() public méthode

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.
Résultat void