Browse Source

Clear for typed buffer

Kajetan Johannes Hammerle 1 year ago
parent
commit
1528c3108d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      utils/TypedBuffer.h

+ 4 - 0
utils/TypedBuffer.h

@@ -27,6 +27,10 @@ public:
     operator const T*() const {
         return reinterpret_cast<const T*>(static_cast<const char*>(data));
     }
+
+    void clear() {
+        data.clear();
+    }
 };
 
 #endif