I’m looking in “PhysicsFS” documentation and search for way to archive and compress data but can’t find.Is it possible and if it is how i can do that
I’m looking in PhysicsFS documentation and search for way to archive and compress data
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PhysicsFS zip support
PhysicsFS has support for reading files from a zip file mounted at an arbitrary point in the “virtual filesystem” that it provide. This effectively provide decompression from a ZIP archive.
However, PhysicsFS has no support to add or modify the content of a ZIP archive. It only permit to write uncompressed files in what is called “the write directory” in its documentation.
So, to summarize: PhysicsFS only support reading from ZIP archives, not writing to it.
For the compression you are on your own: just zip all the written files using an external compressor if you need so.
PhysicsFS usage
There is a small tutorial for PhysicsFS here.
It is very simple to use: