Searched defs:choose_hton (Results 1 – 2 of 2) sorted by relevance
32 template <typename IntType> struct choose_hton<IntType, __ORDER_LITTLE_ENDIAN__> { struct33 inline static IntType hton(const IntType& value) { in hton()44 template <typename IntType> struct choose_hton<IntType, __ORDER_BIG_ENDIAN__> { struct45 inline static IntType hton(const IntType& value) { return value; } in hton()
406 template <typename IntType> struct choose_hton<IntType, __ORDER_LITTLE_ENDIAN__> { struct407 inline static IntType hton(const IntType& value) { in hton()418 template <typename IntType> struct choose_hton<IntType, __ORDER_BIG_ENDIAN__> { struct419 inline static IntType hton(const IntType& value) { return value; } in hton()