Rizin
unix-like reverse engineering framework and cli tools
zfstream.h File Reference
#include <istream>
#include <ostream>
#include "zlib.h"

Go to the source code of this file.

Classes

class  gzfilebuf
 Gzipped file stream buffer class. More...
 
class  gzifstream
 Gzipped file input stream class. More...
 
class  gzofstream
 Gzipped file output stream class. More...
 
class  gzomanip2< T1, T2 >
 Gzipped file output stream manipulator class. More...
 

Functions

gzofstreamsetcompression (gzofstream &gzs, int l, int s=Z_DEFAULT_STRATEGY)
 
template<typename T1 , typename T2 >
gzofstreamoperator<< (gzofstream &s, const gzomanip2< T1, T2 > &m)
 
gzomanip2< int, intsetcompression (int l, int s=Z_DEFAULT_STRATEGY)
 

Function Documentation

◆ operator<<()

template<typename T1 , typename T2 >
gzofstream& operator<< ( gzofstream s,
const gzomanip2< T1, T2 > &  m 
)
inline

Definition at line 457 of file zfstream.h.

459  { return (*m.func)(s, m.val1, m.val2); }
static RzSocket * s
Definition: rtr.c:28

References regress::m, and s.

◆ setcompression() [1/2]

gzofstream& setcompression ( gzofstream gzs,
int  l,
int  s = Z_DEFAULT_STRATEGY 
)
inline

Definition at line 440 of file zfstream.h.

441 {
442  (gzs.rdbuf())->setcompression(l, s);
443  return gzs;
444 }
gzfilebuf * rdbuf() const
Definition: zfstream.h:351
gzofstream & setcompression(gzofstream &gzs, int l, int s=Z_DEFAULT_STRATEGY)
Definition: zfstream.h:440

References gzofstream::rdbuf(), and s.

Referenced by main(), and setcompression().

◆ setcompression() [2/2]

gzomanip2<int,int> setcompression ( int  l,
int  s = Z_DEFAULT_STRATEGY 
)
inline

Definition at line 463 of file zfstream.h.

464 { return gzomanip2<int,int>(&setcompression, l, s); }
Gzipped file output stream manipulator class.
Definition: zfstream.h:414

References s, and setcompression().