1234567891011121314151617181920212223242526272829303132 |
- #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 Y_LIFETIME_BOUND, IInputStream* s Y_LIFETIME_BOUND) 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.
- */
- /** @} */
|