diff options
Diffstat (limited to 'src/profiling/PacketBuffer.cpp')
-rw-r--r-- | src/profiling/PacketBuffer.cpp | 7 |
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 |