
25 Sep
2008
25 Sep
'08
7:30 p.m.
On Thu, Sep 25, 2008 at 15:03, vicente.botet <vicente.botet@wanadoo.fr> wrote:
currently most of the applications that must take care of endianess use ntohl/htonl ntohs/htons functions. When the size of the integer change we need to change between the -s and -l functions (or maybe remove the call for chars).
Have you looked at the proposed Boost.Endian library? It's a very elegant way of handling things: http://lists.boost.org/Archives/boost/2008/05/137820.php That said, it's a different philosophy from in-place byte swapping, so it might not fit what you need.