Re: escaping a string
Re: escaping a string
- Subject: Re: escaping a string
- From: Sandro Noel <email@hidden>
- Date: Sun, 21 Sep 2008 17:47:01 -0400
Oups, I did not think of that ... newbe error :)
Thanks.
On 21-Sep-08, at 4:25 PM, Andrew Farmer wrote:
On 21 Sep 08, at 11:14, Sandro Noel wrote:
so basically what i'm dooing here, is that if i find the caracter
"d" and i'm at least 4 bytes into the file,
i check to see if the 4 caracters before my location contain the
word "info", so then i know that my
current location is the start of the info values.
Or it's in the middle of a string which contains "infod" - perhaps
the torrent contains a file called "infodump". The appropriate way
to deal with the bencoded data is to parse it out into native data
structures (NSArray and NSDictionary). Trying to take shortcuts like
this will cause unpredictable errors.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden