From kde-devel Wed Oct 27 12:58:59 2004 From: Thiago Macieira Date: Wed, 27 Oct 2004 12:58:59 +0000 To: kde-devel Subject: Re: Byte order conversions Message-Id: <200410270959.07461.thiago.macieira () kdemail ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=109888200720431 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1863722885==" --===============1863722885== Content-Type: multipart/signed; boundary="nextPart1333098.rvhddV2i8u"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1333098.rvhddV2i8u Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Szombathelyi Gy=F6rgy 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= =2E=20 =2D-=20 Thiago Macieira - Registered Linux user #65028 thiago (AT) macieira (DOT) info ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --nextPart1333098.rvhddV2i8u Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBf5ubM/XwBW70U1gRApDaAJoCv3Qh93pevjFkAJuc58CqVcXwDgCZAcHO fqCbzFW/PLR5cXNx1h8v0o8= =/5vL -----END PGP SIGNATURE----- --nextPart1333098.rvhddV2i8u-- --===============1863722885== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1863722885==--