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

Go to the source code of this file.

Classes

class  gzfilebuf
 Gzipped file stream buffer class. More...
 
class  gzfilestream_common
 
class  gzifstream
 Gzipped file input stream class. More...
 
class  gzofstream
 Gzipped file output stream class. More...
 
class  gzomanip< T >
 

Functions

template<class T >
gzofstreamoperator<< (gzofstream &s, const gzomanip< T > &m)
 
gzofstreamsetcompressionlevel (gzofstream &s, int l)
 
gzofstreamsetcompressionstrategy (gzofstream &s, int l)
 
gzomanip< intsetcompressionlevel (int l)
 
gzomanip< intsetcompressionstrategy (int l)
 

Function Documentation

◆ operator<<()

template<class T >
gzofstream& operator<< ( gzofstream s,
const gzomanip< T > &  m 
)

Definition at line 101 of file zfstream.h.

102 {
103  return (*m.func)(s, m.val);
104 }
static RzSocket * s
Definition: rtr.c:28

◆ setcompressionlevel() [1/2]

gzofstream& setcompressionlevel ( gzofstream s,
int  l 
)
inline

Definition at line 106 of file zfstream.h.

107 {
108  (s.rdbuf())->setcompressionlevel(l);
109  return s;
110 }
gzofstream & setcompressionlevel(gzofstream &s, int l)
Definition: zfstream.h:106

Referenced by main(), and setcompressionlevel().

◆ setcompressionlevel() [2/2]

gzomanip<int> setcompressionlevel ( int  l)
inline

Definition at line 118 of file zfstream.h.

119 {
121 }

References setcompressionlevel().

◆ setcompressionstrategy() [1/2]

gzofstream& setcompressionstrategy ( gzofstream s,
int  l 
)
inline

Definition at line 112 of file zfstream.h.

113 {
114  (s.rdbuf())->setcompressionstrategy(l);
115  return s;
116 }
gzofstream & setcompressionstrategy(gzofstream &s, int l)
Definition: zfstream.h:112

Referenced by setcompressionstrategy().

◆ setcompressionstrategy() [2/2]

gzomanip<int> setcompressionstrategy ( int  l)
inline

Definition at line 123 of file zfstream.h.

124 {
126 }

References setcompressionstrategy().