EggArchive.EggArchive

EggArchive(Stream, EggArchiveLoadOptions)

Initializes a new instance of the EggArchive class from a stream.

public EggArchive(Stream stream, EggArchiveLoadOptions loadOptions = null)
ParameterTypeDescription
streamStreamThe EGG archive stream. The stream must support reading and seeking.
loadOptionsEggArchiveLoadOptionsOptions to load the archive with.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
ArgumentExceptionstream is not readable and seekable.

See Also


EggArchive(string, EggArchiveLoadOptions)

Initializes a new instance of the EggArchive class from a file path.

public EggArchive(string path, EggArchiveLoadOptions loadOptions = null)
ParameterTypeDescription
pathStringPath to the EGG archive file.
loadOptionsEggArchiveLoadOptionsOptions to load the archive with.

Exceptions

exceptioncondition
ArgumentNullExceptionpath is null.
FileNotFoundExceptionThe file does not exist.
SecurityExceptionThe caller does not have the required permission to access.
ArgumentExceptionThe path is empty, contains only white spaces, or contains invalid characters.
UnauthorizedAccessExceptionAccess to file path is denied.
PathTooLongExceptionThe specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
NotSupportedExceptionFile at path contains a colon (:) in the middle of the string.
FileNotFoundExceptionThe file is not found.
DirectoryNotFoundExceptionThe specified path is invalid, such as being on an unmapped drive.
IOExceptionThe file is already open.

See Also