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()
440 template <typename IntType> struct choose_hton<IntType, __ORDER_LITTLE_ENDIAN__> { struct441 inline static IntType hton(const IntType& value) { in hton()452 template <typename IntType> struct choose_hton<IntType, __ORDER_BIG_ENDIAN__> { struct453 inline static IntType hton(const IntType& value) { return value; } in hton()