Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: Size in bytes of Mac Pascal data types Message-ID: <51693@apple.Apple.COM> Date: 18 Apr 91 23:47:59 GMT References: <3992@bruce.cs.monash.OZ.AU> Organization: Apple Computer Inc., Cupertino, CA Lines: 23 jonmc@bruce.cs.monash.OZ.AU (jon mccormack) writes: > >I'm trying to read a Mac data file on a Unix machine and I need to >know the size in bytes of these data types (in Macintosh Pascal): WindowPtr 4 bytes WindowPeek 4 it's a pointer to a WindowRecord Ptr 4 Size 4 rgnHandle 4 Rect 8 top,left,bottom,right (2 bytes each) ControlHandle 4 Boolean 2 boolean value in first byte, garbage in second Str255 256 1 length byte followed by up to 255 characters All handles and pointers are 4 bytes... steve -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Steve Christensen Never hit a man with glasses. stevec@apple.com Hit him with a baseball bat.