API reference
Class ContentSources
Namespace: MicroEngine.Content
Assembly: MicroEngine.Content.dll
Guide: Assets
Reading from any content source, and opening one from a path.
public static class ContentSourcesInheritance
Methods
Open(string)
The content at path: a folder (FolderContentSource) or a zip archive
(ZipContentSource, a file ending in “.zip”).
public static IContentSource Open(string path)Parameters
path string
Returns
Exceptions
path is null, empty or white space.
Nothing exists at path, or it is a file other than a zip archive.
The file is not a valid zip archive.
ReadAllBytes(IContentSource, string)
Reads the whole file at path.
public static byte[] ReadAllBytes(this IContentSource source, string path)Parameters
source IContentSource
path string
Returns
byte[]
Exceptions
The path leaves the source.
No such file, or its name is spelled with another letter case.