C# Класс Imazen.LightResize.StreamUtils

Provides methods for copying streams
Показать файл Открыть проект Примеры использования класса

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

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

Описание методов

CopyToMemoryStream() публичный статический Метод

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
Результат System.IO.MemoryStream

CopyToStream() публичный статический Метод

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
Результат void