12 #if !defined(LLCP_BIG_ENDIAN) && !defined(LLCP_LITTLE_ENDIAN)
13 #error "Must define one of LLCP_BIG_ENDIAN or LLCP_LITTLE_ENDIAN for this platform"
17 uint16_t
__attribute__((__const__)) llcp_hton16(uint16_t h16);
20 uint16_t
__attribute__((__const__)) llcp_ntoh16(uint16_t n16);
23 uint32_t
__attribute__((__const__)) llcp_hton32(uint32_t h32);
26 uint32_t
__attribute__((__const__)) llcp_ntoh32(uint32_t n32);
29 uint64_t
__attribute__((__const__)) llcp_hton64(uint64_t h64);
32 uint64_t
__attribute__((__const__)) llcp_ntoh64(uint64_t n64);
35 uint16_t
__attribute__((__const__)) llcp_htobe16(uint16_t h16);
38 uint16_t
__attribute__((__const__)) llcp_htole16(uint16_t h16);
41 uint16_t
__attribute__((__const__)) llcp_betoh16(uint16_t be16);
44 uint16_t
__attribute__((__const__)) llcp_letoh16(uint16_t le16);
47 uint32_t
__attribute__((__const__)) llcp_htobe32(uint32_t h32);
50 uint32_t
__attribute__((__const__)) llcp_htole32(uint32_t h32);
53 uint32_t
__attribute__((__const__)) llcp_betoh32(uint32_t be32);
56 uint32_t
__attribute__((__const__)) llcp_letoh32(uint32_t le32);
59 uint64_t
__attribute__((__const__)) llcp_htobe64(uint64_t h64);
62 uint64_t
__attribute__((__const__)) llcp_htole64(uint64_t h64);
65 uint64_t
__attribute__((__const__)) llcp_betoh64(uint64_t be64);
68 uint64_t
__attribute__((__const__)) llcp_letoh64(uint64_t le64);