blob: 8bfd462d99ef286ebf0c0a15f52bcec42e80ed1d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "input.h"
/**
* @addtogroup Streams_Multi
* @{
*/
/**
* A proxy input stream that concatenates two slave streams into one.
*/
class TMultiInput: public IInputStream {
public:
TMultiInput(IInputStream* f, IInputStream* s) noexcept;
~TMultiInput() override;
private:
size_t DoRead(void* buf, size_t len) override;
size_t DoSkip(size_t len) override;
size_t DoReadTo(TString& st, char ch) override;
private:
IInputStream* C_;
IInputStream* N_;
};
/**
* See also "util/stream/tee.h" for multi output.
*/
/** @} */
|