Byte Order Swapping Function

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Jul 17 07:31:56 PDT 2011


On 7/17/11 4:27 AM, Timon Gehr wrote:
> Imposing meaning to bytes is the only point for data types to exist whatsoever.
> How do you distinguish between an integer and a network byte order integer at
> function boundaries?

Good point. Then probably the functions swapping bytes away from native 
should return ubyte[N] by value.

Andrei


More information about the Digitalmars-d mailing list