Declared in | NSData+Searching.h |
---|
This category provides ranging and splitting of NSData
objects.
- (NSRange)rangeFrom:(NSInteger)start toByte:(NSInteger)c
Range of bytes up to the first occurrence of c from start. If c can not be found then the NSRange.location will be set to NSNotFound.
Returns the range of bytes up to the first occurrence of byte c from start.
NSData
+Searching.h
- (NSRange)rangeOfNullTerminatedBytesFrom:(NSInteger)start
Range of bytes up to the first NULL from start. If no NULL can be found then the NSRange.location will be set to NSNotFound.
Returns the range of bytes up to the first NULL byte from start.
NSData
+Searching.h
- (NSData *)subdataFromIndex:(NSUInteger)index
Start of the range which defines the limits to extract.
A data object containing a copy of the receiver's bytes that fall within the limits of index and the end of the bytes.
Returns a data object containing a copy of the receiver's bytes that fall within the limits specified by a given index and the end of the bytes.
NSData
+Searching.h
- (NSData *)subdataToIndex:(NSUInteger)index
End of the range which defines the limits to extract.
A data object containing a copy of the receiver's bytes that fall within the first byte and index.
Returns a data object containing a copy of the receiver's bytes that fall within the first byte and index.
NSData
+Searching.h
Last updated: 2011-2-20