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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,695f23160a3223e X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!news.f.de.plusline.net!news-fra1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Unchecked conversion of arrays? Date: Fri, 14 May 2004 17:34:06 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <7_Soc.92431$dP1.290953@newsc.telia.net> <5ad0dd8a.0405140239.1411a24d@posting.google.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1084556046 14745 134.91.1.34 (14 May 2004 17:34:06 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 14 May 2004 17:34:06 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: controlnews3.google.com comp.lang.ada:586 Date: 2004-05-14T17:34:06+00:00 List-Id: Wojtek Narczynski 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