octave_zstd可以通过Octave软件源安装。
>> pkg install -forge octave_zstd
octave_zstd可以在线安装。
>> pkg install 'https://github.com/CNOCTAVE/octave_zstd/releases/download/1.1.0/octave_zstd.tar.gz'
octave_zstd可以直接使用tar包安装。
>> pkg install octave_zstd.tar.gz -local
>> pkg load octave_zstd
$ sudo dnf install libzstd libzstd-devel libzstd-static
>> pkg install -forge octave_tar
Loadable Function: 0 = zstd_compress(FILENAME, COMPRESSED_FILENAME)
输入文件名FILENAME和压缩后的文件名COMPRESSED_FILENAME。
总是返回0。
Loadable Function: 0 = zstd_decompress(COMPRESSED_FILENAME,
DECOMPRESSED_FILENAME)
输入压缩文件名COMPRESSED_FILENAME和解压缩后的文件名
DECOMPRESSED_FILENAME。总是返回0。
Loadable Function: ret = tar_zstd_compress(SOURCE1, SOURCE2, ... , TAR_ZSTD_FILENAME)
输入一个或多个文件或文件夹名SOURCE1, SOURCE2, ...和压缩后的文件名TAR_ZSTD_FILENAME。
如果返回0,则代表压缩成功;否则代表压缩失败。
Loadable Function: 0 = tar_zstd_decompress(TAR_ZSTD_FILENAME, DESTINATION_DIR)
输入压缩文件名TAR_ZSTD_FILENAME和解压缩后的文件名DESTINATION_DIR。
如果返回0,则代表解压缩成功;否则代表解压缩失败。
Loadable Function: COMPRESSED_STRING = zstd_compress_string(STRING)
输入字符串STRING,返回压缩后的字符串COMPRESSED_STRING。
Loadable Function: DECOMPRESSED_STRING =
zstd_decompress_string(COMPRESSED_STRING)
输入压缩后的字符串COMPRESSED_STRING,返回解压缩后的字符串
DECOMPRESSED_STRING。
>> zstd_compress("file", "file.zst")
>> zstd_decompress("file.zst", "new_file")
>> compressed_string = zstd_compress_string("abcdefg")
>> decompressed_string = zstd_decompress_string(compressed_string)
@misc{CNOCTAVE2024, author = {Yu Hongbo, }, title = {octave_zstd}, year = {2024}, howpublished = {\url{https://github.com/CNOCTAVE/octave_zstd}}, }
@techreport{CNOCTAVE2024, author = {Yu Hongbo, }, title = {octave_zstd Document}, institution = {BA DU XIN SHANG}, year = {2024}, number = {1}, month = {10}, url = {https://cnoctave.github.io/octave_zstd/index.html}, urldate = {2024-10-07}, }
@article{https://doi.org/10.6084/m9.figshare.27186048.v1, doi = {10.6084/M9.FIGSHARE.27186048.V1}, url = {https://figshare.com/articles/preprint/octave_zstd_Efficient_File_and_String_Decompression_Utilizing_the_ZSTD_Algorithm/27186048/1}, author = {Yu Hongbo, }, keywords = {Software architecture}, title = {octave_zstd: Efficient File and String Decompression Utilizing the ZSTD Algorithm}, publisher = {figshare}, year = {2024}, copyright = {Creative Commons Attribution 4.0 International} }