MCPcopy Create free account
hub / github.com/ARM-software/armnn / WritePacket

Method WritePacket

profiling/client/src/SocketProfilingConnection.cpp:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool SocketProfilingConnection::WritePacket(const unsigned char* buffer, uint32_t length)
91{
92 if (buffer == nullptr || length == 0)
93 {
94 return false;
95 }
96#if !defined(ARMNN_DISABLE_SOCKETS)
97 return arm::pipe::Write(m_Socket[0].fd, buffer, length) != -1;
98#else
99 return false;
100#endif
101}
102
103arm::pipe::Packet SocketProfilingConnection::ReadPacket(uint32_t timeout)
104{

Callers 2

FlushBufferMethod · 0.45

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected