NSData(Searching) Class Reference

#import <NSData+Searching.h>

List of all members.

Public Member Functions

(NSRange) - rangeOfNullTerminatedBytesFrom:
(NSData *) - subdataFromIndex:
(NSData *) - subdataToIndex:


Member Function Documentation

- (NSRange) rangeOfNullTerminatedBytesFrom: (NSInteger)  start  

Returns the range of bytes up to the first NULL byte from start.

Returns:
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.
See also:
memchr

- (NSData*) subdataFromIndex: (NSUInteger)  index  

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.

Parameters:
index Start of the range which defines the limits to extract.
Returns:
A data object containing a copy of the receiver's bytes that fall within the limits of index and the end of the bytes.
See also:
-subdataWithRange:

- (NSData*) subdataToIndex: (NSUInteger)  index  

Returns a data object containing a copy of the receiver's bytes that fall within the first byte and index.

Parameters:
index End of the range which defines the limits to extract.
Returns:
A data object containing a copy of the receiver's bytes that fall within the first byte and index.
See also:
-subdataWithRange:


The documentation for this class was generated from the following file:

Generated on Mon Dec 8 22:57:08 2008 for CocoaGit by  doxygen 1.5.7