From kde-devel Wed Oct 27 13:18:56 2004 From: =?ISO-8859-2?Q?Szombathelyi_Gy=F6rgy?= Date: Wed, 27 Oct 2004 13:18:56 +0000 To: kde-devel Subject: Re: Byte order conversions Message-Id: <417FA040.5080404 () freemail ! hu> X-MARC-Message: https://marc.info/?l=kde-devel&m=109888345215471 Thiago Macieira wrote: > Szombathelyi György wrote: > >>Is there anyone who knows convenient byte-order conversion functions in >>QT/kdelibs? If not, then what about adding some functions like >>{be2me,le2me,me2be,me2le}_{16,32,64) (prefixed with the usual 'K')?. As >>I browse through the code, every piece of code which requires this >>functionality implements its own solution, usually with ugly macros and >>#ifdef WORDS_BIGENDIAN conditionals. > > > htons, htonl, ntohs, ntohl should do the big-endian to machine-endian stuff. > Then why these functions are not used? Is there any portabiliy issues? >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<