mpd/src/io/OutputStream.hxx

22 lines
401 B
C++
Raw Normal View History

// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#ifndef OUTPUT_STREAM_HXX
#define OUTPUT_STREAM_HXX
#include <cstddef>
2023-05-15 11:00:21 +02:00
#include <span>
class OutputStream {
public:
OutputStream() = default;
OutputStream(const OutputStream &) = delete;
/**
* Throws std::exception on error.
*/
2023-05-15 11:00:21 +02:00
virtual void Write(std::span<const std::byte> src) = 0;
};
#endif