Lines Matching defs:istream
4 #include "istream-private.h"
5 #include "istream-try.h"
8 struct istream_private istream;
11 struct istream **try_input;
14 struct istream *final_input;
33 if (tstream->istream.parent != NULL)
34 i_stream_close(tstream->istream.parent);
43 static bool i_stream_try_is_buffer_full(struct istream *try_input)
46 This is mainly intended to check with istream-tee whether its
51 return anything (e.g. istream-bzlib). */
66 struct istream *try_input =
73 i_stream_init_parent(&tstream->istream, try_input);
80 tstream->istream.istream.stream_errno =
82 io_stream_set_error(&tstream->istream.iostream,
90 io_stream_set_error(&tstream->istream.iostream,
92 tstream->istream.istream.stream_errno = EINVAL;
108 stream->istream.v_offset);
109 return i_stream_read_copy_from_parent(&stream->istream);
112 struct istream *istream_try_create(struct istream *const input[])
135 tstream->istream.iostream.close = i_stream_try_close;
137 tstream->istream.max_buffer_size = max_buffer_size;
138 tstream->istream.read = i_stream_try_read;
140 tstream->istream.istream.readable_fd = FALSE;
141 tstream->istream.istream.blocking = blocking;
142 tstream->istream.istream.seekable = seekable;
143 return i_stream_create(&tstream->istream, NULL, -1, 0);