C# Class NanoByte.Common.Net.DownloadMemory

Downloads a file from a specific internet address to an in-memory array.
Inheritance: DownloadTask
ファイルを表示 Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
DownloadMemory ( Uri source, long bytesTotal = -1 ) : System

Creates a new download task.

Protected Methods

Method Description
CreateTargetStream ( ) : Stream

Private Methods

Method Description
GetData ( ) : byte[]

Method Details

CreateTargetStream() protected method

protected CreateTargetStream ( ) : Stream
return Stream

DownloadMemory() public method

Creates a new download task.
public DownloadMemory ( Uri source, long bytesTotal = -1 ) : System
source System.Uri The URL the file is to be downloaded from.
bytesTotal long The number of bytes the file to be downloaded is long. The file will be rejected if it does not have this length. -1 if the size is unknown.
return System