Changeset 2663 for box/RELEASE/0.11rc7/lib/common/Box.h
- Timestamp:
- 08/03/2010 22:00:55 (2 years ago)
- File:
-
- 1 edited
-
box/RELEASE/0.11rc7/lib/common/Box.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/RELEASE/0.11rc7/lib/common/Box.h
r2662 r2663 164 164 #endif 165 165 166 // overloaded auto-conversion functions 167 inline uint64_t hton(uint64_t in) { return box_hton64(in); } 168 inline uint32_t hton(uint32_t in) { return htonl(in); } 169 inline uint16_t hton(uint16_t in) { return htons(in); } 170 inline uint8_t hton(uint8_t in) { return in; } 171 inline int64_t hton(int64_t in) { return box_hton64(in); } 172 inline int32_t hton(int32_t in) { return htonl(in); } 173 inline int16_t hton(int16_t in) { return htons(in); } 174 inline int8_t hton(int8_t in) { return in; } 175 inline uint64_t ntoh(uint64_t in) { return box_ntoh64(in); } 176 inline uint32_t ntoh(uint32_t in) { return ntohl(in); } 177 inline uint16_t ntoh(uint16_t in) { return ntohs(in); } 178 inline uint8_t ntoh(uint8_t in) { return in; } 179 inline int64_t ntoh(int64_t in) { return box_ntoh64(in); } 180 inline int32_t ntoh(int32_t in) { return ntohl(in); } 181 inline int16_t ntoh(int16_t in) { return ntohs(in); } 182 inline int8_t ntoh(int8_t in) { return in; } 183 166 184 #endif // BOX__H 167 185
Note: See TracChangeset
for help on using the changeset viewer.
