///////////////////////////////////////////////////////
| 42 | { |
| 43 | //////////////////////////////////////////////////////////// |
| 44 | void Packet::append(const void* data, std::size_t sizeInBytes) |
| 45 | { |
| 46 | if (data && (sizeInBytes > 0)) |
| 47 | { |
| 48 | const auto* begin = reinterpret_cast<const std::byte*>(data); |
| 49 | const auto* end = begin + sizeInBytes; |
| 50 | m_data.insert(m_data.end(), begin, end); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | |
| 55 | //////////////////////////////////////////////////////////// |
no test coverage detected