aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/Packet.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-10-10 13:29:02 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-10-10 18:22:41 +0100
commit67ef2a52c3cdcc37538d77711bbcea2f0e5655e5 (patch)
tree8d25bcb2c10cba8945ae4638695d879e88b9d259 /src/profiling/Packet.hpp
parent8efc500a7465c03877db8bbe443134f2b1bbc1af (diff)
downloadarmnn-67ef2a52c3cdcc37538d77711bbcea2f0e5655e5.tar.gz
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 <matteo.martincigh@arm.com> Change-Id: I73eab5b1ead67a610cd17fd33f8a74f764ad8cc4
Diffstat (limited to 'src/profiling/Packet.hpp')
-rw-r--r--src/profiling/Packet.hpp18
1 files changed, 9 insertions, 9 deletions
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<char[]>& data)
+ Packet(uint32_t header, uint32_t length, std::unique_ptr<unsigned char[]>& 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<char[]> m_Data;
+ std::unique_ptr<unsigned char[]> m_Data;
};
} // namespace profiling