[svn:parrot] r37999 - branches/packfile_revamp/docs/pdds

Jonathan Worthington jonathan at jnthn.net
Sun Apr 12 11:16:54 UTC 2009


Vasily Chekalkin wrote:
> Reini Urban wrote:
>>> Log:
>>> Remove uuid_length from public Packfile attributes.
>>>
>>> "But anyone who cares about the length of the UUID can just go grab the
>>> string and then get it's length." (c) jonathan
>>
>> Veto:
>> That would disallow 0 as uuid_data. Using it as NULL-terminated is
>> just optional.
>>
>> header->uuid_size is an important atribute for uuid_type = 1, in the
>> reader and in the writer.
>>
>
> For the record - uuid is STRING, not cstring. So, if you'll create it 
> as '\0' it will have length 1 and will be stored and fetched properly.
>
Great. This is just a change to the PIR-facing interface of the Packfile 
PMC, not to the underlying struct, which still has a char* buffer and a 
length.

Thanks,

Jonathan



More information about the parrot-dev mailing list