Date: Fri, 04 Apr 2003 08:55:58 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Nate Lawson <nate@root.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys endian.h src/share/man/man9 byteorder.9 Message-ID: <5567.1049439358@critter.freebsd.dk> In-Reply-To: Your message of "Thu, 03 Apr 2003 15:49:08 -0800." <Pine.BSF.4.21.0304031545540.15187-100000@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.21.0304031545540.15187-100000@root.org>, Nate Lawson wri
tes:
>On Thu, 3 Apr 2003, Poul-Henning Kamp wrote:
>> Modified files:
>> sys/sys endian.h
>> share/man/man9 byteorder.9
>> Log:
>> Add inline functions {be,le}{16,32,64}{enc,dec}() for encoding decoding
>> into byte strings of unknown alignment.
>>
>> Revision Changes Path
>> 1.3 +39 -1 src/share/man/man9/byteorder.9
>> 1.3 +108 -0 src/sys/sys/endian.h
>
>This is really great! I have wanted this for a while. Just a few
>questions. Have the standards folks had a look at the API? Second, it
>appears the *enc functions have args in reverse order (void *, uint32_t
>for example). Any thoughts on bcopy vs. memcpy ordering of args?
I don't particularly care about the order, so if there is a concensus
for one order over the other I'll just change it.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5567.1049439358>
