From 67ef2a52c3cdcc37538d77711bbcea2f0e5655e5 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Thu, 10 Oct 2019 13:29:02 +0100 Subject: IVGCVSW-3964 Change the type held by the Packet class to unsigned char * Updated the Packet class * Updated the pertinent code accordingly Signed-off-by: Matteo Martincigh Change-Id: I73eab5b1ead67a610cd17fd33f8a74f764ad8cc4 --- src/profiling/Packet.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/profiling/Packet.hpp') diff --git a/src/profiling/Packet.hpp b/src/profiling/Packet.hpp index fae368b64e..ff6de69f53 100644 --- a/src/profiling/Packet.hpp +++ b/src/profiling/Packet.hpp @@ -33,7 +33,7 @@ public: m_PacketFamily = (header >> 26); } - Packet(uint32_t header, uint32_t length, std::unique_ptr& data) + Packet(uint32_t header, uint32_t length, std::unique_ptr& data) : m_Header(header) , m_Length(length) , m_Data(std::move(data)) @@ -66,13 +66,13 @@ public: Packet& operator=(const Packet&) = delete; Packet& operator=(Packet&&) = default; - uint32_t GetHeader() const { return m_Header; } - uint32_t GetPacketFamily() const { return m_PacketFamily; } - uint32_t GetPacketId() const { return m_PacketId; } - uint32_t GetPacketClass() const { return m_PacketId >> 3; } - uint32_t GetPacketType() const { return m_PacketId & 7; } - uint32_t GetLength() const { return m_Length; } - const char* const GetData() const { return m_Data.get(); } + uint32_t GetHeader() const { return m_Header; } + uint32_t GetPacketFamily() const { return m_PacketFamily; } + uint32_t GetPacketId() const { return m_PacketId; } + uint32_t GetPacketClass() const { return m_PacketId >> 3; } + uint32_t GetPacketType() const { return m_PacketId & 7; } + uint32_t GetLength() const { return m_Length; } + const unsigned char* const GetData() const { return m_Data.get(); } bool IsEmpty() { return m_Header == 0 && m_Length == 0; } @@ -81,7 +81,7 @@ private: uint32_t m_PacketFamily; uint32_t m_PacketId; uint32_t m_Length; - std::unique_ptr m_Data; + std::unique_ptr m_Data; }; } // namespace profiling -- cgit v1.2.1