1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 04:54:28 +01:00

Fixed/added documentation to several classes.

This commit is contained in:
Matias Fontanini
2011-08-23 21:32:13 -03:00
parent 8afe3d7429
commit 2510c825cd
7 changed files with 16 additions and 11 deletions

View File

@@ -153,6 +153,11 @@ namespace Tins {
((data & 0x0000ff00) << 8) | ((data & 0x000000ff) << 24));
}
/**
* \brief Convert 64 bit integer into network byte order.
*
* \param data The data to convert.
*/
inline uint64_t net_to_host_ll(uint64_t data) {
return (((uint64_t)(net_to_host_l((uint32_t)((data << 32) >> 32))) << 32) |
(net_to_host_l(((uint32_t)(data >> 32)))));