From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cdc06d48151b2720 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Byte Swapping in Ada References: <1177613699.956152.39280@n15g2000prd.googlegroups.com> In-Reply-To: <1177613699.956152.39280@n15g2000prd.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1177649671 12.201.97.213 (Fri, 27 Apr 2007 04:54:31 GMT) NNTP-Posting-Date: Fri, 27 Apr 2007 04:54:31 GMT Organization: AT&T ASP.att.net Date: Fri, 27 Apr 2007 04:54:31 GMT Xref: g2news1.google.com comp.lang.ada:15342 Date: 2007-04-27T04:54:31+00:00 List-Id: markp wrote: > Does Ada provide any built-in byte swapping routines such as ntohl, > htons, etc.? No. It's a simple operation. You should be able to easily write a generic that would swap the bytes in anything, if you really need to do this a lot. -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail 05