comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: converting floats, ints byte arrays
Date: Thu, 12 Jul 2001 16:35:11 GMT
Date: 2001-07-12T16:35:11+00:00	[thread overview]
Message-ID: <3B4DD1BF.42549471@boeing.com> (raw)
In-Reply-To: 9ije24$9kg$1@fang.dsto.defence.gov.au

Vladimir Bednikov wrote:
> 
> What I want is an array where the first C.C_Float'size bytes is the sample

Remember that 'Size gives the size in bits, not bytes. To get the size
in terms of your Byte type, you need to calculate

(C.C_Float'Size + Byte'Size - 1) / Byte'Size

-- 
Jeffrey Carter



  parent reply	other threads:[~2001-07-12 16:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-12  5:46 converting floats, ints byte arrays Vladimir Bednikov
2001-07-12  6:45 ` tmoran
2001-07-12 16:35 ` Jeffrey Carter [this message]
2001-07-13 11:34 ` David C. Hoos
replies disabled

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