Commit 1cf35c3e authored by Dominik Charousset's avatar Dominik Charousset

Fix semantics of property getter

parent 4fa391d7
...@@ -75,10 +75,11 @@ public: ...@@ -75,10 +75,11 @@ public:
return central_buf + max_path_buf; return central_buf + max_path_buf;
} }
/// Returns the number of buffered elements for this specific slot, ignoring
/// the central buffer.
size_t buffered(stream_slot slot) const noexcept override { size_t buffered(stream_slot slot) const noexcept override {
auto i = state_map_.find(slot); auto i = state_map_.find(slot);
return this->buf_.size() return i != state_map_.end() ? i->second.buf.size() : 0u;
+ (i != state_map_.end() ? i->second.buf.size() : 0u);
} }
int32_t max_capacity() const noexcept override { int32_t max_capacity() const noexcept override {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment