C# Class Imazen.LightResize.StreamUtils

Provides methods for copying streams
Datei anzeigen Open project: imazen/lightresize Class Usage Examples

Public Methods

Method Description
CopyToMemoryStream ( Stream s, bool entireStream, int chunkSize ) : MemoryStream

Copies the current stream into a new MemoryStream instance.

CopyToStream ( Stream src, Stream dest, bool entireStream, int chunkSize ) : void

Copies this stream into the given stream

Method Details

CopyToMemoryStream() public static method

Copies the current stream into a new MemoryStream instance.
public static CopyToMemoryStream ( Stream s, bool entireStream, int chunkSize ) : MemoryStream
s Stream
entireStream bool True to copy entire stream if seeakable, false to only copy remaining data
chunkSize int The buffer size to use (in bytes) if a buffer is required. Default: 4KiB
return System.IO.MemoryStream

CopyToStream() public static method

Copies this stream into the given stream
public static CopyToStream ( Stream src, Stream dest, bool entireStream, int chunkSize ) : void
src Stream
dest Stream The stream to write to
entireStream bool True to copy entire stream if seeakable, false to only copy remaining data
chunkSize int True to copy entire stream if seeakable, false to only copy remaining data
return void