aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/ForeignFifoBuffer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/ForeignFifoBuffer.hxx')
-rw-r--r--src/util/ForeignFifoBuffer.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/ForeignFifoBuffer.hxx b/src/util/ForeignFifoBuffer.hxx
index c119fb6d5..cd6fb6101 100644
--- a/src/util/ForeignFifoBuffer.hxx
+++ b/src/util/ForeignFifoBuffer.hxx
@@ -171,6 +171,10 @@ public:
tail += n;
}
+ constexpr size_type GetAvailable() const {
+ return tail - head;
+ }
+
/**
* Return a buffer range which may be read. The buffer pointer is
* writable, to allow modifications while parsing.