On 3/30/05 1:44 PM, John Stiles didst favor us with:
>
> On Mar 30, 2005, at 10:37 AM, Laurence Harris wrote:
>
>>> Nor do we need to call NewPtr, NewHandle, DisposePtr,
>>> DisposeHandle?
>>
>> Mostly yes, some no. Anything you do with the result of NewPtr can be done
>> with the result of malloc *except* that there is no analog to GetPtrSize.
>
> Well, it's not exactly the same, but there is malloc_size, which is
> frequently a pretty good substitute. (It returns the actual size of the
> buffer you got, which is often a few bytes larger than what you asked
> for.)
> http://developer.apple.com/documentation/Darwin/Reference/ManPages/
> man3/malloc_size.3.html
For my purposes, this is useless since it won't tell me exactly how many
bytes are meaningful.
Larry
_______________________________________________
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