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: FSDirectorySize code finished



On 10/31/05 2:11 AM, David A. Lyons didst favor us with:

> On Oct 30, 2005, at 3:06 PM, Lawrence Sanbourne wrote:
>> And if you don't store pointers, then the STL has to copy the FSRef
>> into some memory.
> 
> Actually...there's nothing stopping you from "creating" the FSRefs
> directly in the vector.
> 
> vector<FSRef> v;
> ...
> i = v.size();
> v.resize( big enough );
> status = ::FSGetCatalogInfoBulk(..., &v[i], ...);

In this case the vector in question is a stack of folders built as they're
encountered while traversing various folders, so the above isn't an option.

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

References: 
 >Re: FSDirectorySize code finished (From: "David A. Lyons" <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.