mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +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);
|
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
|
* 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.
|
* is only valid as long as this object is not moved.
|
||||||
|
|||||||
Reference in New Issue
Block a user