mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Add a size function to the stream wrapper
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user