C# Class System.IO.StreamExtensions

显示文件 Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
CopyTo ( this source, Stream destination ) : void
CopyTo ( this source, Stream destination, long start, long length, Action chunkAction ) : void
ToArray ( this stream ) : byte[]
ToStream ( this body ) : Stream

Method Details

CopyTo() public static method

public static CopyTo ( this source, Stream destination ) : void
source this
destination Stream
return void

CopyTo() public static method

public static CopyTo ( this source, Stream destination, long start, long length, Action chunkAction ) : void
source this
destination Stream
start long
length long
chunkAction Action
return void

ToArray() public static method

public static ToArray ( this stream ) : byte[]
stream this
return byte[]

ToStream() public static method

public static ToStream ( this body ) : Stream
body this
return Stream