C# Class Imazen.LightResize.StreamUtils

Provides methods for copying streams
Afficher le fichier Open project: imazen/lightresize Class Usage Examples

Méthodes publiques

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

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

CopyToStream() public static méthode

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