buffer_input_stream is a simple input_stream wrapping a single temporary_buffer. prepended_input_stream suits for the case when some data has been read into a buffer and the rest is still in a stream. It accepts a buffer and a data_source and first reads from the buffer and then, when it ends, proceeds reading from the data_source. Signed-off-by: Vladimir Krivopalov <vladimir@scylladb.com>
1.7 KiB
1.7 KiB