From d842d21be07eb7c291231f05295479fec878d3e6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Jan 2017 20:32:26 +0100 Subject: [PATCH] util/ReusableArray: add method GetCapacity() --- src/util/ReusableArray.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/ReusableArray.hxx b/src/util/ReusableArray.hxx index 6e7e0dc4d..e5541a88f 100644 --- a/src/util/ReusableArray.hxx +++ b/src/util/ReusableArray.hxx @@ -66,6 +66,10 @@ public: delete[] buffer; } + size_t GetCapacity() const { + return capacity; + } + /** * Free resources allocated by this object. This invalidates * the buffer returned by Get().