Commit d842d21b authored by Max Kellermann's avatar Max Kellermann

util/ReusableArray: add method GetCapacity()

parent 3514fd24
......@@ -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().
......
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