util/ReusableArray: add method GetCapacity()

This commit is contained in:
Max Kellermann 2017-01-11 20:32:26 +01:00
parent 3514fd2433
commit d842d21be0

View File

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