• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: escaping a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: escaping a string


  • Subject: Re: escaping a string
  • From: Andrew Farmer <email@hidden>
  • Date: Sun, 21 Sep 2008 13:25:55 -0700

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


  • Follow-Ups:
    • Re: escaping a string
      • From: Sandro Noel <email@hidden>
References: 
 >escaping a string (From: Sandro Noel <email@hidden>)
 >Re: escaping a string (From: "Michael Ash" <email@hidden>)
 >Re: escaping a string (From: Sandro Noel <email@hidden>)
 >Re: escaping a string (From: "Stephen J. Butler" <email@hidden>)
 >Re: escaping a string (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: Finding other apps' paths - deterministically!
  • Next by Date: Re: NSOperationQueue
  • Previous by thread: Re: escaping a string
  • Next by thread: Re: escaping a string
  • Index(es):
    • Date
    • Thread