Re: Unsigned Long Long
Re: Unsigned Long Long
- Subject: Re: Unsigned Long Long
- From: Fritz Anderson <email@hidden>
- Date: Wed, 12 May 2004 16:39:18 -0500
An unsigned long long is simply a 64-bit integer, in the range 0 ..
(2^64)-1. You do arithmetic on it the same way you'd do it on any other
integer. Divide by 1024 to get KB.
I'm curious why you're doing it this way instead of using
NSFileManager's fileAttributesAtPath:traverseLink: method, which would
work even if you didn't have read permission on the file.
-- F
On 12 May 2004, at 3:20 PM, email@hidden wrote:
Ok so i use this code to seek a file and get its size
NSFileHandle *fh = [NSFileHandle fileHandleForReadingAtPath:file];
NSNumber *totalFileSize = [NSNumber numberWithUnsignedLongLong:[fh
seekToEndOfFile]];
[fh closeFile];
the size is returned to me as an Unsigned Long Long ... does anyone
have a good definition of what exactly that is? I need to convert it
to kilo bytes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.