Go to the documentation of this file.
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*
191 std::ios_base::openmode
io_mode;
412 template<
typename T1,
typename T2>
417 template <
typename Ta,
typename Tb>
447 template<
typename T1,
typename T2>
456 template<
typename T1,
typename T2>
459 {
return (*
m.func)(s,
m.val1,
m.val2); }
virtual std::streamsize showmanyc()
Number of characters available in stream buffer.
gzofstream & setcompression(gzofstream &gzs, int l, int s=Z_DEFAULT_STRATEGY)
virtual std::streambuf * setbuf(char_type *p, std::streamsize n)
Installs external stream buffer.
void enable_buffer()
Allocate internal buffer.
gzfilebuf * attach(int file_descriptor, int io_mode)
bool open_mode(std::ios_base::openmode mode, char *c_mode) const
Convert ios open mode int to mode string used by zlib.
static const unsigned char char_type[]
void disable_buffer()
Destroy internal buffer.
Gzipped file output stream manipulator class.
gzomanip2(gzofstream &(*f)(gzofstream &, T1, T2), T1 v1, T2 v2)
void open(const char *name, std::ios_base::openmode mode=std::ios_base::out)
Open gzipped file.
Gzipped file output stream class.
bool is_open() const
Check if file is open.
bool own_fd
True if this object owns file descriptor.
char_type * buffer
Stream buffer.
int setcompression(int comp_level, int comp_strategy=Z_DEFAULT_STRATEGY)
Set compression level and strategy on the fly.
void close()
Close gzipped file.
Gzipped file stream buffer class.
virtual int overflow(int=EOF)
gzofstream & operator<<(gzofstream &s, const gzomanip2< T1, T2 > &m)
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.
std::ios_base::openmode io_mode
bool is_open()
Check if file is open.
gzfilebuf * rdbuf() const
Gzipped file input stream class.
bool own_buffer
True if this object owns stream buffer.
void close()
Close gzipped file.
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.
std::streamsize buffer_size
Stream buffer size.
gzfilebuf * open(const char *name, int io_mode)
#define Z_DEFAULT_STRATEGY
gzfilebuf * rdbuf() const
friend gzofstream & operator<<(gzofstream &, const gzomanip2< Ta, Tb > &)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:01