Lines Matching defs:ostream
5 #include "ostream.h"
6 #include "ostream-private.h"
7 #include "ostream-escaped.h"
10 struct ostream_private ostream;
24 ret = o_stream_send(estream->ostream.parent, str_data(estream->buf), str_len(estream->buf));
26 o_stream_copy_error_from_parent(&estream->ostream);
46 max_buffer_size = I_MIN(o_stream_get_max_buffer_size(estream->ostream.parent),
47 estream->ostream.max_buffer_size);
57 estream->ostream.ostream.offset += i;
66 estream->ostream.ostream.offset += i;
108 o_stream_unref(&estream->ostream.parent);
116 struct ostream *
117 o_stream_create_escaped(struct ostream *output,
123 estream->ostream.sendv = o_stream_escaped_sendv;
124 estream->ostream.flush = o_stream_escaped_flush;
125 estream->ostream.max_buffer_size = o_stream_get_max_buffer_size(output);
126 estream->ostream.iostream.destroy = o_stream_escaped_destroy;
131 return o_stream_create(&estream->ostream, output, o_stream_get_fd(output));