F.4. BZip2
Function | Returns | Description |
---|---|---|
bzopen(string|int file|fp, string mode) | resource | Opens a new BZip2 stream. |
bzread(int bz[, int length]) | string | Reads up to length bytes from a BZip2 stream, or 1024 bytes if length is not specified. |
bzwrite(int bz, string data[, int length]) | int | Writes the contents of the string data to the BZip2 stream. |
bzerrno(resource bz) | int | Returns the error number. |
bzerrstr(resource bz) | string | Returns the error string. |
bzerror(resource bz) | array | Returns the error number and error string in an associative array. |
bzcompress(string source [, int blocksize100k [, int workfactor]]) | string | Compresses a string into BZip2 encoded data. |
bzdecompress(string source [, int small]) | string | Decompresses BZip2 compressed data. |
bzclose((resource bz) | int | Closes a bzip2 file pointer. |
bzflush(resource bz) | Int | Forces a write of all buffered BZip2 data. |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.