Coder Social home page Coder Social logo

minizip's Introduction

minizip for RT-Thread

minizip是依托于zlib软件包的一个zip格式解、压缩的软件包。minizip是zlib官方认可的一个第三方库。

教程:https://blog.csdn.net/whahu1989/article/details/80344373

主要接口文件

  • zip.c:负责将多文件压缩为zip压缩包相关
  • unzip.c:负责zip压缩包解压相关

提供命令2个

1. miniunz 解压命令

负责解压zip压缩包,命令如下:

Usage : miniunz [-e] [-x] [-v] [-l] [-o] [-p password] file.zip [file_to_extr.] [-d extractdir]

  -e  Extract without pathname (junk paths)
  -x  Extract with pathname
  -v  list files
  -l  list files
  -d  directory to extract into
  -o  overwrite files without prompting
  -p  extract crypted file using password

2. minizip 压缩命令

负责将多文件压缩为zip压缩包,命令如下:

Usage : minizip [-o] [-a] [-0 to -9] [-p password] file.zip [files_to_add]

  -o  Overwrite existing file.zip
  -a  Append to existing file.zip
  -0  Store only
  -1  Compress faster
  -9  Compress better

如何获取软件包

RT-Thread online package -> 
     miscellaneous package -> 
         [*] minizip: zip manipulation library --->

注意

如果只是列出zip压缩包的文件,该操作不会占用多少内存。但是如果要进行解、压缩操作,需要占用很大的内存,至少300KB左右,建议使用配备外置SRAM的开发板进行尝试。

维护

Meco Man @ RT-Thread Community

https://github.com/mysterywolf/minizip

minizip's People

Contributors

a1012112796 avatar mysterywolf avatar wcx1024979076 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

minizip's Issues

zip文件处理后未被关闭

msh /sd>list_fd
fd type    ref magic  path
-- ------  --- ----- ------
 3 device    1 fdfd  /uart0
msh /sd>un
msh /sd>mi
miniunz
msh /sd>miniunz -l B
BOOT.bin
BOOT.zip
msh /sd>miniunz -l BOOT.z
msh /sd>miniunz -l BOOT.zip
MiniUnz 1.01b, demo of zLib + Unz package written by Gilles Vollant
more info at http://www.winimage.com/zLibDll/minizip.html

BOOT.zip opened
 Length  Method   Size  Ratio   Date    Time   CRC-32     Name
 ------  ------   ----  -----   ----    ----   ------     ----
4478024  Defl:N  232700   5%  03-03-22  16:58  83183071   BOOT.bin
msh /sd>list_fd
fd type    ref magic  path
-- ------  --- ----- ------
 3 device    1 fdfd  /uart0
 4 file      1 fdfd  /BOOT.zip
msh /sd>

测试平台: zynq7020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.