Re: Looking for bytes in NSData
Re: Looking for bytes in NSData
- Subject: Re: Looking for bytes in NSData
- From: Andy Lee <email@hidden>
- Date: Sun, 27 Oct 2002 11:20:02 -0500
At 7:03 AM -0600 10/27/02, Chris Vincent wrote:
Is there a way to look for a sequence of bytes in NSData? I'm looking
for something similar to NSString's -rangeOfString. Is this possible?
I've been using NSData's -bytes method combined with the C function
strstr(). Do a "man strstr" for details and variants on strstr().
If anyone knows a smarter way, please let us both know!
--Andy
_______________________________________________
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.