tempbuf.h 455 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "output.h"
  3. #include <util/memory/tempbuf.h>
  4. class TTempBufOutput: public IOutputStream, public TTempBuf {
  5. public:
  6. inline TTempBufOutput() = default;
  7. explicit TTempBufOutput(size_t size)
  8. : TTempBuf(size)
  9. {
  10. }
  11. TTempBufOutput(TTempBufOutput&&) noexcept = default;
  12. TTempBufOutput& operator=(TTempBufOutput&&) noexcept = default;
  13. protected:
  14. void DoWrite(const void* data, size_t len) override;
  15. };