ZstandardArchive

ZstandardArchive class

This class represents Zstandard archive file. Use it to compose Zstandard archives.

The ZstandardArchive type exposes the following members:

Constructors

NameDescription
ZstandardArchive()Initializes a new instance of the ZstandardArchive class prepared for compressing.
ZstandardArchive(source_stream, options)Initializes a new instance of the ZstandardArchive class prepared for decompressing.
ZstandardArchive(path, options)Initializes a new instance of the ZstandardArchive class.

Properties

NameDescription
file_entriesGets entries of IArchiveFileEntry type constituting the archive.
nameGets name of the entry.
lengthGets the length of the entry in bytes.

Methods

NameDescription
extract(destination)Extracts the archive to the stream provided.
extract(path)Extracts the archive to the file by path.
set_source(source)Sets the content to be compressed within the archive.
set_source(path)Sets the content to be compressed within the archive.
save(output_stream, settings)Saves archive to the stream provided.
save(destination_file_name, settings)Saves archive to destination file provided.
open()Opens the archive for extraction and provides a stream with archive content.
extract_to_directory(destination_directory)Extracts content of the archive to the directory provided.

See Also