FromZstandard

TarArchive.FromZstandard method (1 of 2)

Extracts supplied Zstandard archive and composes TarArchive from extracted data.

Important: Zstandard archive is fully extracted within this method, its content is kept internally. Beware of memory consumption.

public static TarArchive FromZstandard(Stream source)
ParameterTypeDescription
sourceStreamThe source of the archive.

Return Value

An instance of TarArchive

Exceptions

exceptioncondition
IOExceptionZstandard stream is corrupted or not readable.
InvalidDataExceptionData is corrupted.

See Also


TarArchive.FromZstandard method (2 of 2)

Extracts supplied Zstandard archive and composes TarArchive from extracted data.

Important: Zstandard archive is fully extracted within this method, its content is kept internally. Beware of memory consumption.

public static TarArchive FromZstandard(string path)
ParameterTypeDescription
pathStringThe path to the archive file.

Return Value

An instance of TarArchive

Exceptions

exceptioncondition
IOExceptionZstandard stream is corrupted or not readable.
InvalidDataExceptionData is corrupted.

See Also