Lines Matching defs:istream
6 #include "istream-private.h"
7 #include "istream-rawlog.h"
10 struct istream_private istream;
21 i_stream_close(rstream->istream.parent);
29 v_offset = rstream->istream.parent_start_offset +
30 rstream->istream.istream.v_offset;
31 if (rstream->istream.parent->seekable ||
32 v_offset > rstream->istream.parent->v_offset) {
34 i_stream_seek(rstream->istream.parent, v_offset);
44 i_stream_seek(stream->parent, rstream->istream.parent_start_offset +
45 stream->istream.v_offset);
57 stream->istream.stream_errno = stream->parent->stream_errno;
58 stream->istream.eof = stream->parent->eof;
70 i_assert(ret != -1 || stream->istream.eof ||
71 stream->istream.stream_errno != 0);
75 struct istream *
76 i_stream_create_rawlog(struct istream *input, const char *rawlog_path,
93 struct istream *
94 i_stream_create_rawlog_from_stream(struct istream *input,
101 rstream->istream.max_buffer_size = input->real_stream->max_buffer_size;
102 rstream->istream.stream_size_passthrough = TRUE;
107 rstream->istream.read = i_stream_rawlog_read;
108 rstream->istream.iostream.close = i_stream_rawlog_close;
109 rstream->istream.iostream.destroy = i_stream_rawlog_destroy;
111 rstream->istream.istream.readable_fd = input->readable_fd;
112 rstream->istream.istream.blocking = input->blocking;
113 rstream->istream.istream.seekable = input->seekable;
114 return i_stream_create(&rstream->istream, input,