Add a size function to the stream wrapper

This commit is contained in:
Robbert van der Helm
2022-09-27 14:10:42 +02:00
parent 67c6fa1563
commit 9fa8aa034a
+5
View File
@@ -45,6 +45,11 @@ class Stream {
*/
Stream(const clap_istream_t& original);
/**
* The buffer's size in bytes, used for logging.
*/
inline size_t size() const noexcept { return buffer_.size(); }
/**
* Get a `clap_ostream_t` for this buffer that the plugin can write to. This
* is only valid as long as this object is not moved.