sprint 1-alpha
|
gzip file library More...
#include <gzip.h>
Public Member Functions | |
gzip (const char *filename, sprint::io::flag_t openMode, int compression_level=9) | |
sprint::io::caps_t | capabilities () const |
int | write (const char *buf, unsigned int size) |
compress some datas on file | |
int | read (char *buf, unsigned int size) |
uncompress some datas from file | |
sprint::io::file_size_t | seek (file_size_t offset, sprint::io::seek_t type) |
sprint::io::state_t | state () |
sprint::io::file_size_t | length () const |
return the size of uncompressed file |
gzip file library
sprint::io::gzip::gzip | ( | const char * | filename, |
sprint::io::flag_t | openMode, | ||
int | compression_level = 9 |
||
) |
open/create a gzip file
filename | name of file open for write/read |
openMode | file open for read or write |
compression_level | level of compression in writing |