comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <jrcarter@acm.org>
Subject: Re: Byte Swapping in Ada
Date: Fri, 27 Apr 2007 04:54:31 GMT
Date: 2007-04-27T04:54:31+00:00	[thread overview]
Message-ID: <bmfYh.80190$_c5.52502@attbi_s22> (raw)
In-Reply-To: <1177613699.956152.39280@n15g2000prd.googlegroups.com>

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



  parent reply	other threads:[~2007-04-27  4:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 18:55 Byte Swapping in Ada markp
2007-04-26 21:43 ` Robert A Duff
2007-04-27  4:54 ` Jeffrey R. Carter [this message]
2007-04-27 11:47 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox