Lines Matching defs:ostream
8 #include "ostream-private.h"
9 #include "ostream-zlib.h"
16 struct ostream_private ostream;
35 i_assert(zstream->ostream.finished ||
36 zstream->ostream.ostream.stream_errno != 0 ||
37 zstream->ostream.error_handling_disabled);
40 o_stream_close(zstream->ostream.parent);
47 ret = o_stream_send(zstream->ostream.parent, zstream->gz_header,
50 o_stream_copy_error_from_parent(&zstream->ostream);
57 static int o_stream_zlib_lsb_uint32(struct ostream *output, uint32_t num)
73 struct ostream *output = zstream->ostream.parent;
80 o_stream_copy_error_from_parent(&zstream->ostream);
96 ret = o_stream_send(zstream->ostream.parent,
99 o_stream_copy_error_from_parent(&zstream->ostream);
120 flush = zstream->ostream.corked || zstream->gz ?
154 o_stream_get_name(&zstream->ostream.ostream));
157 o_stream_get_name(&zstream->ostream.ostream), ret);
182 if ((ret = o_stream_flush_parent_if_needed(&zstream->ostream)) <= 0)
263 stream->ostream.offset += bytes;
265 if (!zstream->ostream.corked && i == iov_count) {
290 static struct ostream *
291 o_stream_create_zlib(struct ostream *output, int level, bool gz)
300 zstream->ostream.sendv = o_stream_zlib_sendv;
301 zstream->ostream.flush = o_stream_zlib_flush;
302 zstream->ostream.iostream.close = o_stream_zlib_close;
325 return o_stream_create(&zstream->ostream, output,
329 struct ostream *o_stream_create_gz(struct ostream *output, int level)
334 struct ostream *o_stream_create_deflate(struct ostream *output, int level)