I have following datav
<050d00e7 f0e100aa ffffffff ffffff05 0d00e7f0 e100abff ffffffff ffff050d 00e7f0e1 00acffff ffffffff ff>
in NSDATA but i want to search for
0d00e7f0 e100abff
so please help me how should I apply This Please help
I used in this way
NSData *left1onData=[NSData dataWithBytes:left1on length:15];
NSRange left1onRange=[data rangeOfData:left1onData options:0 range:NSMakeRange(0,[data length])];
edit condition I use if(left1offRange.location==NSNotFound)
使用以下方法:
- (NSRange)rangeOfData:(NSData *)dataToFind options:(NSDataSearchOptions)mask range:(NSRange)searchRange
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.