C# Class NanoByte.Common.Net.DownloadMemory

Downloads a file from a specific internet address to an in-memory array.
Inheritance: DownloadTask
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

Méthode Description
DownloadMemory ( Uri source, long bytesTotal = -1 ) : System

Creates a new download task.

Méthodes protégées

Méthode Description
CreateTargetStream ( ) : Stream

Private Methods

Méthode Description
GetData ( ) : byte[]

Method Details

CreateTargetStream() protected méthode

protected CreateTargetStream ( ) : Stream
Résultat Stream

DownloadMemory() public méthode

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