istream-chain.c revision 204ee6ed414f5e4eeb6f6c10763b55daf56f11ac
/* how much of the previous link's stream still exists at the beginning of our buffer. skipping through this should point to the beginning of the current link's stream. */ /* if io_add_istream() has been added to this chain stream, notify the callback that we have more data available. */ const unsigned char *
data;
/* a) we have more streams, b) we have EOF, c) we need to wait /* we've already buffered some of the prev_input. continue appending the rest to it. if it's already at EOF, there's nothing more to append. */ /* the stream has now become "previous", so its contents in buffer are now part of prev_stream_left. */ /* no need to worry about buffers, skip everything */ /* we're still skipping inside buffer */ /* done with the buffer */ const unsigned char *
data;
/* EOF of this stream, go to next stream */ /* we can point directly to the current stream's buffers */ /* we still have some of the previous stream left. merge the /* seek to the correct position in parent stream in case it didn't