[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Byte order conversions
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-10-27 13:14:17
Message-ID: 200410271014.17828.thiago.macieira () kdemail ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Rüdiger Knörig wrote:
>> htons, htonl, ntohs, ntohl should do the big-endian to machine-endian
>> stuff.
>
>But only for short- and long int datatypes. Datatypes of different length
>won't be handled.

Indeed, but those will be implemented in fast, assembly inlined code :-)

16- and 32-bit conversions are probably the most widespread conversion 
anyways.

BTW, in your ConvertEndianness class, why does it have a virtual destructor? 
For that matter, why does it have constructor and destructors at all?

-- 
  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

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic