AsImpL 1.0
Asynchronous Importer and run-time Loader for Unity
AsImpL.FileFilesystem Class Reference

Filesystem implementation that uses the standard .NET File class. More...

Inheritance diagram for AsImpL.FileFilesystem:
AsImpL.IFilesystem

Public Member Functions

byte[] ReadAllBytes (string path)
 Reads all data from the specified path into a byte array. More...
 
string[] ReadAllLines (string path)
 Reads all lines in the specified file into an array of strings. More...
 
FileStream OpenRead (string path)
 Opens the file at the specified path for reading. More...
 
IEnumerator DownloadUri (string uri, bool notifyErrors)
 Downloads the specified URI. More...
 
IEnumerator DownloadTexture (string uri)
 Downloads the specified URI as texture. More...
 

Detailed Description

Filesystem implementation that uses the standard .NET File class.

Member Function Documentation

◆ DownloadTexture()

IEnumerator AsImpL.FileFilesystem.DownloadTexture ( string  uri)

Downloads the specified URI as texture.

Parameters
uriThe URI to download.
Returns
An enumerator usable as Coroutine in Unity.

Implements AsImpL.IFilesystem.

◆ DownloadUri()

IEnumerator AsImpL.FileFilesystem.DownloadUri ( string  uri,
bool  notifyErrors 
)

Downloads the specified URI.

Parameters
uriThe URI to download.
notifyErrorsWhether to notify of errors.
Returns
An enumerator usable as Coroutine in Unity.

Implements AsImpL.IFilesystem.

◆ OpenRead()

FileStream AsImpL.FileFilesystem.OpenRead ( string  path)

Opens the file at the specified path for reading.

Parameters
path
Returns

Implements AsImpL.IFilesystem.

◆ ReadAllBytes()

byte[] AsImpL.FileFilesystem.ReadAllBytes ( string  path)

Reads all data from the specified path into a byte array.

Parameters
path
Returns

Implements AsImpL.IFilesystem.

◆ ReadAllLines()

string[] AsImpL.FileFilesystem.ReadAllLines ( string  path)

Reads all lines in the specified file into an array of strings.

Parameters
path
Returns

Implements AsImpL.IFilesystem.


The documentation for this class was generated from the following file: