Commit 52bee8f8 authored by Max Kellermann's avatar Max Kellermann

util/StaticFifoBuffer: add GetAvailable()

parent adc25e64
...@@ -111,6 +111,10 @@ public: ...@@ -111,6 +111,10 @@ public:
tail += n; tail += n;
} }
constexpr size_type GetAvailable() const noexcept {
return tail - head;
}
/** /**
* Return a buffer range which may be read. The buffer pointer is * Return a buffer range which may be read. The buffer pointer is
* writable, to allow modifications while parsing. * writable, to allow modifications while parsing.
......
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