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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d0a6d42d2076a13,start X-Google-Attributes: gid103376,public From: Tom Moran Subject: aliased & packed? Date: 1997/05/09 Message-ID: <33734C0C.6904@bix.com>#1/1 X-Deja-AN: 240579358 Organization: InterNex Information Services 1-800-595-3333 Reply-To: tmoran@bix.com Newsgroups: comp.lang.ada Date: 1997-05-09T00:00:00+00:00 List-Id: 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?