Commit 056ab199 authored by Max Kellermann's avatar Max Kellermann

util/PeakBuffer: add method max_size()

parent eea0e084
......@@ -55,6 +55,10 @@ public:
PeakBuffer(const PeakBuffer &) = delete;
PeakBuffer &operator=(const PeakBuffer &) = delete;
std::size_t max_size() const noexcept {
return normal_size + peak_size;
}
gcc_pure
bool empty() const noexcept;
......
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