67 std::ios_base::openmode
mode);
77 std::ios_base::openmode
mode);
102 virtual std::streamsize
125 overflow(int_type
c = traits_type::eof());
135 virtual std::streambuf*
412 template<
typename T1,
typename T2>
417 template <
typename Ta,
typename Tb>
447 template<
typename T1,
typename T2>
452 : func(
f), val1(
v1), val2(v2)
456 template<
typename T1,
typename T2>
459 {
return (*
m.func)(
s,
m.val1,
m.val2); }
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
Gzipped file stream buffer class.
std::streamsize buffer_size
Stream buffer size.
virtual int_type underflow()
Fill get area from gzipped file.
bool is_open() const
Check if file is open.
gzfilebuf * close()
Close gzipped file.
std::ios_base::openmode io_mode
bool own_fd
True if this object owns file descriptor.
gzfilebuf * attach(int file_descriptor, int io_mode)
virtual int overflow(int=EOF)
virtual std::streambuf * setbuf(char_type *p, std::streamsize n)
Installs external stream buffer.
void disable_buffer()
Destroy internal buffer.
virtual int sync()
Flush stream buffer to file.
char_type * buffer
Stream buffer.
bool open_mode(std::ios_base::openmode mode, char *c_mode) const
Convert ios open mode int to mode string used by zlib.
bool own_buffer
True if this object owns stream buffer.
int setcompression(int comp_level, int comp_strategy=Z_DEFAULT_STRATEGY)
Set compression level and strategy on the fly.
void enable_buffer()
Allocate internal buffer.
gzfilebuf * open(const char *name, int io_mode)
virtual std::streamsize showmanyc()
Number of characters available in stream buffer.
Gzipped file input stream class.
void close()
Close gzipped file.
gzfilebuf * rdbuf() const
void attach(int fd, std::ios_base::openmode mode=std::ios_base::in)
Attach to already open gzipped file.
void open(const char *name, std::ios_base::openmode mode=std::ios_base::in)
Open gzipped file.
bool is_open()
Check if file is open.
Gzipped file output stream class.
gzfilebuf * rdbuf() const
void close()
Close gzipped file.
void attach(int fd, std::ios_base::openmode mode=std::ios_base::out)
Attach to already open gzipped file.
bool is_open()
Check if file is open.
void open(const char *name, std::ios_base::openmode mode=std::ios_base::out)
Open gzipped file.
Gzipped file output stream manipulator class.
friend gzofstream & operator<<(gzofstream &, const gzomanip2< Ta, Tb > &)
gzomanip2(gzofstream &(*f)(gzofstream &, T1, T2), T1 v1, T2 v2)
gzofstream & setcompression(gzofstream &gzs, int l, int s=Z_DEFAULT_STRATEGY)
gzofstream & operator<<(gzofstream &s, const gzomanip< T > &m)
static const z80_opcode fd[]
#define Z_DEFAULT_STRATEGY