On 12/22/04 1:51 AM, "Jack Jansen" <[EMAIL PROTECTED]> wrote:

> On 22 Dec 2004, at 00:22, Opstad, Dave wrote:
> 
>> According to MacTypes.r (in the last Universal Headers revision), the
>> Rez format for a 'STR#' resource is as follows:
>> 
>> --------------------
>> type 'STR#' {
>>    integer = $$Countof(StringArray);
>>    array StringArray {
>>       pstring;   /* String */
>>    };
>> };
>> --------------------
>> 
>> So it looks like a 2-byte count followed by an array of Pascal strings.
> 
> Ah yes. And now that I see this I seem to remember that the pstrings
> are padded to a 2-byte boundary.

Hmmm, I'd be a bit surprised if there was such alignment padding. Pascal
string lengths are one byte, so after the single integer listed above
everything else should just be byte-aligned.

Dave

_______________________________________________
Pythonmac-SIG maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to