aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/IPacketBuffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/IPacketBuffer.hpp')
-rw-r--r--src/profiling/IPacketBuffer.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/profiling/IPacketBuffer.hpp b/src/profiling/IPacketBuffer.hpp
index 1a97ca741c..15687a81e9 100644
--- a/src/profiling/IPacketBuffer.hpp
+++ b/src/profiling/IPacketBuffer.hpp
@@ -35,6 +35,10 @@ public:
virtual void Release() = 0;
virtual unsigned char* GetWritableData() = 0;
+
+ /// release the memory held and reset internal point to null.
+ /// After this function is invoked the PacketBuffer is unusable.
+ virtual void Destroy() = 0;
};
using IPacketBufferPtr = std::unique_ptr<IPacketBuffer>;