C# 클래스 Imazen.LightResize.StreamUtils

Provides methods for copying streams
파일 보기 프로젝트 열기: imazen/lightresize 1 사용 예제들

공개 메소드들

메소드 설명
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