Enumerate through each range of bytes in the data object using a block.
- iOS 7.0+
- macOS 10.9+
- tvOS 7.0+
- watchOS 2.0+
The block to apply to byte ranges in the array.
The block takes three arguments:
The bytes for the current range. This pointer is valid until the data object is deallocated.
The range of the current data bytes.
A reference to a Boolean value. The block can set the value to
trueto stop further processing of the data. The stop argument is an out-only argument. You should only ever set this Boolean to
truewithin the Block.
The enumeration block is called once for each contiguous region of memory in the receiver (once total for a contiguous
NSData object), until either all bytes have been enumerated, or the
stop parameter is set to