comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Unchecked conversion of arrays?
Date: Fri, 14 May 2004 17:34:06 +0000 (UTC)
Date: 2004-05-14T17:34:06+00:00	[thread overview]
Message-ID: <c82vue$ecp$3@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: 5ad0dd8a.0405140239.1411a24d@posting.google.com

Wojtek Narczynski <wojtek@power.com.pl> wrote:
:> I'm thinking Unchecked Conversion won't be reliable, because 
:> if for example the byte array is packed and Wide String is not, then (on 
:> a 32-bit machine) I'll get two bytes of garbage between every two bytes 
:> of character data.
 
 
: Unchecked_Conversion will check sizes for you, so I don't think you
: need to worry about garbage.

Maybe this article is helpful here:
 http://www.adapower.com/lang/accessmem.html
 
: You do need to remember about endian-ness, though.


-- Georg



  reply	other threads:[~2004-05-14 17:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-13 22:51 Unchecked conversion of arrays? Björn Persson
2004-05-14 10:39 ` Wojtek Narczynski
2004-05-14 17:34   ` Georg Bauhaus [this message]
2004-05-15  1:11   ` Jeffrey Carter
2004-05-15 10:20     ` Björn Persson
2004-05-16 19:44 ` Nick Roberts
replies disabled

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