When I am using bzopen, do I need to bzwrite() already compressed by a bzcompress() string or is it being compressed automatically while writing?
When I am using bzopen , do I need to bzwrite() already compressed by
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.
Judging by Example #1 on the manual page of
bzwrite(quoting) :I would say there is no need to compress data yourself with
bzcompressbefore usingbzwrite.Also, executing this portion of code will create a file with content that looks like this :
Doesn’t look like “
uncompressed data” — and looks like some bzip2-compressed data 😉