Commit 52cb425e authored by Max Kellermann's avatar Max Kellermann

util/StaticFifoBuffer: add method GetCapacity()

parent ed3220f3
...@@ -56,6 +56,10 @@ protected: ...@@ -56,6 +56,10 @@ protected:
T data[size]; T data[size];
public: public:
constexpr size_type GetCapacity() const {
return size;
}
void Shift() { void Shift() {
if (head == 0) if (head == 0)
return; return;
......
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