Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do deprecated APIs provide byte swapping on the Mac Intel platform?



On Mon, 31 Oct 2005 11:19:16 Joseph Maurer wrote:
>
> On Oct 31, 2005, at 11:10 AM, Laurence Harris wrote:
> 
>> So that means you need to swap the picSize value as well if you access it
>
> The picSize field (a 16-bit qantity) has been pointless ever since PICTs could
> get bigger than 64k :-)
> It may very well contain garbage.

I believe it is still used during picture recording: it must be properly
set either odd or even, otherwise pict opcodes won't pad correctly on
even bytes. The simplest way to do it is just to add to it and ignore
overflow. So yes, it could be 15 bits of garbage + 1 bit of signal. :-)

Mike

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.