From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/classarmnn_1_1profiling_1_1_packet.xhtml | 633 +++++++++++++++++++++++++ 1 file changed, 633 insertions(+) create mode 100644 20.02/classarmnn_1_1profiling_1_1_packet.xhtml (limited to '20.02/classarmnn_1_1profiling_1_1_packet.xhtml') diff --git a/20.02/classarmnn_1_1profiling_1_1_packet.xhtml b/20.02/classarmnn_1_1profiling_1_1_packet.xhtml new file mode 100644 index 0000000000..43861a5878 --- /dev/null +++ b/20.02/classarmnn_1_1profiling_1_1_packet.xhtml @@ -0,0 +1,633 @@ + + + + + + + + + + + + + +ArmNN: Packet Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Packet Class Reference
+
+
+ +

#include <Packet.hpp>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Packet ()
 
 Packet (uint32_t header)
 
 Packet (uint32_t header, uint32_t length, std::unique_ptr< unsigned char[]> &data)
 
 Packet (Packet &&other)
 
 ~Packet ()=default
 
 Packet (const Packet &other)=delete
 
Packetoperator= (const Packet &)=delete
 
Packetoperator= (Packet &&)=default
 
uint32_t GetHeader () const
 
uint32_t GetPacketFamily () const
 
uint32_t GetPacketId () const
 
uint32_t GetPacketClass () const
 
uint32_t GetPacketType () const
 
uint32_t GetLength () const
 
const unsigned char * GetData () const
 
bool IsEmpty ()
 
+

Detailed Description

+
+

Definition at line 18 of file Packet.hpp.

+

Constructor & Destructor Documentation

+ +

◆ Packet() [1/5]

+ +
+
+ + + + + +
+ + + + + + + +
Packet ()
+
+inline
+
+ +

Definition at line 21 of file Packet.hpp.

+ +

Referenced by Packet::Packet().

+
22  : m_Header(0)
23  , m_Length(0)
24  , m_Data(nullptr)
25  {}
+
+
+ +

◆ Packet() [2/5]

+ +
+
+ + + + + +
+ + + + + + + + +
Packet (uint32_t header)
+
+inline
+
+ +

Definition at line 27 of file Packet.hpp.

+
28  : m_Header(header)
29  , m_Length(0)
30  , m_Data(nullptr)
31  {
32  m_PacketId = ((header >> 16) & 1023);
33  m_PacketFamily = (header >> 26);
34  }
+
+
+ +

◆ Packet() [3/5]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Packet (uint32_t header,
uint32_t length,
std::unique_ptr< unsigned char[]> & data 
)
+
+inline
+
+ +

Definition at line 36 of file Packet.hpp.

+
37  : m_Header(header)
38  , m_Length(length)
39  , m_Data(std::move(data))
40  {
41  m_PacketId = ((header >> 16) & 1023);
42  m_PacketFamily = (header >> 26);
43 
44  if (length == 0 && m_Data != nullptr)
45  {
46  throw armnn::InvalidArgumentException("Data should be null when length is zero");
47  }
48  }
+
+
+
+ +

◆ Packet() [4/5]

+ +
+
+ + + + + +
+ + + + + + + + +
Packet (Packet && other)
+
+inline
+
+ +

Definition at line 50 of file Packet.hpp.

+ +

References Packet::operator=(), Packet::Packet(), and Packet::~Packet().

+
51  : m_Header(other.m_Header)
52  , m_PacketFamily(other.m_PacketFamily)
53  , m_PacketId(other.m_PacketId)
54  , m_Length(other.m_Length)
55  , m_Data(std::move(other.m_Data))
56  {
57  other.m_Header = 0;
58  other.m_PacketFamily = 0;
59  other.m_PacketId = 0;
60  other.m_Length = 0;
61  }
+
+
+ +

◆ ~Packet()

+ +
+
+ + + + + +
+ + + + + + + +
~Packet ()
+
+default
+
+ +

Referenced by Packet::Packet().

+ +
+
+ +

◆ Packet() [5/5]

+ +
+
+ + + + + +
+ + + + + + + + +
Packet (const Packetother)
+
+delete
+
+ +
+
+

Member Function Documentation

+ +

◆ GetData()

+ +
+
+ + + + + +
+ + + + + + + +
const unsigned char* GetData () const
+
+inline
+
+
+ +

◆ GetHeader()

+ +
+
+ + + + + +
+ + + + + + + +
uint32_t GetHeader () const
+
+inline
+
+ +

Definition at line 69 of file Packet.hpp.

+ +

Referenced by BOOST_AUTO_TEST_CASE(), and ProfilingConnectionDumpToFileDecorator::ReadPacket().

+
69 { return m_Header; }
+
+
+ +

◆ GetLength()

+ +
+
+ + + + + +
+ + + + + + + +
uint32_t GetLength () const
+
+inline
+
+
+ +

◆ GetPacketClass()

+ +
+
+ + + + + +
+ + + + + + + +
uint32_t GetPacketClass () const
+
+inline
+
+ +

Definition at line 72 of file Packet.hpp.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
72 { return m_PacketId >> 3; }
+
+
+ +

◆ GetPacketFamily()

+ + + +

◆ GetPacketId()

+ + + +

◆ GetPacketType()

+ +
+
+ + + + + +
+ + + + + + + +
uint32_t GetPacketType () const
+
+inline
+
+ +

Definition at line 73 of file Packet.hpp.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
73 { return m_PacketId & 7; }
+
+
+ +

◆ IsEmpty()

+ +
+
+ + + + + +
+ + + + + + + +
bool IsEmpty ()
+
+inline
+
+ +

Definition at line 77 of file Packet.hpp.

+ +

Referenced by CommandHandler::Stop().

+
77 { return m_Header == 0 && m_Length == 0; }
+
+
+ +

◆ operator=() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
Packet& operator= (const Packet)
+
+delete
+
+ +

Referenced by Packet::Packet().

+ +
+
+ +

◆ operator=() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
Packet& operator= (Packet && )
+
+default
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1