AsImpL 1.0
Asynchronous Importer and run-time Loader for Unity
AsImpL.IFilesystem Interface Reference

Interface for classes that access the filesystem. More...

Inheritance diagram for AsImpL.IFilesystem:
AsImpL.FileFilesystem

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

Interface for classes that access the filesystem.

Member Function Documentation

◆ DownloadTexture()

IEnumerator AsImpL.IFilesystem.DownloadTexture ( string  uri)

Downloads the specified URI as texture.

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

Implemented in AsImpL.FileFilesystem.

◆ DownloadUri()

IEnumerator AsImpL.IFilesystem.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.

Implemented in AsImpL.FileFilesystem.

◆ OpenRead()

FileStream AsImpL.IFilesystem.OpenRead ( string  path)

Opens the file at the specified path for reading.

Parameters
path
Returns

Implemented in AsImpL.FileFilesystem.

◆ ReadAllBytes()

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

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

Parameters
path
Returns

Implemented in AsImpL.FileFilesystem.

◆ ReadAllLines()

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

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

Parameters
path
Returns

Implemented in AsImpL.FileFilesystem.


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