aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/PacketBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/PacketBuffer.cpp')
-rw-r--r--src/profiling/PacketBuffer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/profiling/PacketBuffer.cpp b/src/profiling/PacketBuffer.cpp
index 886561ae75..6010493002 100644
--- a/src/profiling/PacketBuffer.cpp
+++ b/src/profiling/PacketBuffer.cpp
@@ -55,6 +55,13 @@ unsigned char* PacketBuffer::GetWritableData()
return m_Data.get();
}
+void PacketBuffer::Destroy()
+{
+ m_Data.reset(nullptr);
+ m_Size = 0;
+ m_MaxSize = 0;
+}
+
} // namespace profiling
} // namespace armnn