grpc
third_party
zlib
contrib
iostream
zlib/contrib/iostream/test.cpp
Go to the documentation of this file.
1
2
#include "
zfstream.h
"
3
4
int
main
() {
5
6
// Construct a stream object with this filebuffer. Anything sent
7
// to this stream will go to standard out.
8
gzofstream
os( 1,
ios::out
);
9
10
// This text is getting compressed and sent to stdout.
11
// To prove this, run 'test | zcat'.
12
os <<
"Hello, Mommy"
<< endl;
13
14
os <<
setcompressionlevel
(
Z_NO_COMPRESSION
);
15
os <<
"hello, hello, hi, ho!"
<< endl;
16
17
setcompressionlevel
( os,
Z_DEFAULT_COMPRESSION
)
18
<<
"I'm compressing again"
<< endl;
19
20
os.
close
();
21
22
return
0;
23
24
}
Z_DEFAULT_COMPRESSION
#define Z_DEFAULT_COMPRESSION
Definition:
bloaty/third_party/zlib/zlib.h:193
gen_build_yaml.out
dictionary out
Definition:
src/benchmark/gen_build_yaml.py:24
setcompressionlevel
gzofstream & setcompressionlevel(gzofstream &s, int l)
Definition:
bloaty/third_party/zlib/contrib/iostream/zfstream.h:106
main
int main()
Definition:
zlib/contrib/iostream/test.cpp:4
gzofstream
Gzipped file output stream class.
Definition:
bloaty/third_party/zlib/contrib/iostream/zfstream.h:80
zfstream.h
Z_NO_COMPRESSION
#define Z_NO_COMPRESSION
Definition:
bloaty/third_party/zlib/zlib.h:190
gzofstream::close
void close()
Close gzipped file.
Definition:
bloaty/third_party/zlib/contrib/iostream3/zfstream.cc:475
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:27