diff options
Diffstat (limited to 'src/util/StaticFifoBuffer.hxx')
-rw-r--r-- | src/util/StaticFifoBuffer.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/StaticFifoBuffer.hxx b/src/util/StaticFifoBuffer.hxx index 3598d7246..615f92e3f 100644 --- a/src/util/StaticFifoBuffer.hxx +++ b/src/util/StaticFifoBuffer.hxx @@ -111,6 +111,10 @@ public: tail += n; } + constexpr size_type GetAvailable() const noexcept { + return tail - head; + } + /** * Return a buffer range which may be read. The buffer pointer is * writable, to allow modifications while parsing. |