From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: aliased & packed?
Date: 1997/05/09
Date: 1997-05-09T00:00:00+00:00 [thread overview]
Message-ID: <33739A50.7B99@gsfc.nasa.gov> (raw)
In-Reply-To: 33734C0C.6904@bix.com
Tom Moran wrote:
>
> Clearly you can't do it. I'd like to use pragma Pack for bits in a
> black/white bitmap array. That's easy to manipulate. But to actually
> display it I need to do a system call and pass the address. If it
> wasn't packed, Image'unchecked_access would be appropriate. But
> that won't work because Image would have to be aliased, and it can't
> be because it's packed. Must I drop 'Pack' and make it an array of
> bytes and do my own masking, shifting, etc? What's the cleanest/most
> portable/best way to accomplish the task?
Since the system call wants the address, use 'address (converted to
Long_Integer or whatever is required). You have to do some conversion to
pass to a system call; converting from 'unchecked_access is no "cleaner"
than converting from 'address.
As for portability, there will be a different system call to display
bitmaps, so you'll have to change a lot more than the attribute!
--
- Stephe
next prev parent reply other threads:[~1997-05-09 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-09 0:00 aliased & packed? Tom Moran
1997-05-09 0:00 ` Stephen Leake [this message]
1997-05-09 0:00 ` Tom Moran
1997-05-10 0:00 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
1997-05-11 0:00 tmoran
1997-05-11 0:00 ` Robert Dewar
1997-05-11 0:00 ` Tom Moran
1997-05-12 0:00 ` Robert Dewar
1997-05-12 0:00 ` Robert A Duff
[not found] ` <1997May13.065907.1@eisner>
1997-05-13 0:00 ` Robert A Duff
1997-05-13 0:00 ` Larry Kilgallen
1997-05-14 0:00 ` Richard Kenner
1997-05-13 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox