comp.lang.ada
 help / color / mirror / Atom feed
* Unchecked conversion of arrays?
@ 2004-05-13 22:51 Björn Persson
  2004-05-14 10:39 ` Wojtek Narczynski
  2004-05-16 19:44 ` Nick Roberts
  0 siblings, 2 replies; 6+ messages in thread
From: Björn Persson @ 2004-05-13 22:51 UTC (permalink / raw)


Let's say I have a Wide_String that I need to convert to an array of 
bytes. Each byte will of course contain half a Wide_Character, with the 
other half in the next byte. Will I have to copy one character at a time 
or is there a faster way to do this with representation clauses or 
something? 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.

-- 
Björn Persson

jor ers @sv ge.
b n_p son eri nu




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-16 19:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2004-05-15  1:11   ` Jeffrey Carter
2004-05-15 10:20     ` Björn Persson
2004-05-16 19:44 ` Nick Roberts

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