MSProtectedData getBytes:range:error method
Copies a range of plaintext bytes from the receiver s data into a given buffer. Decryption is transparently performed during the execution of the method.
Signature
- (BOOL)getBytes:(void *)buffer range:(NSRange)range error:(NSError **)errorPtr;
Parameters
Name | Datatype | Notes |
---|---|---|
buffer |
void * |
Required. The buffer into which to copy the plaintext data. |
range |
NSRange |
Required. The range of plaintext bytes in the receiver s data to copy to the buffer. The range must lie within the range of bytes of the receiver s data. |
errorPtr |
NSError ** |
Optional. If an error occurs, contains the error code and details. |
Returns
Type: BOOL
YES if the operation is successful; otherwise, NO.
Defined in
MSProtectedData.h
Supported Platforms
Minimum supported OS versions |
iOS 7.0 and OS X 10.8 |
Remarks
If the range specified in the range parameter isn t within the receiver s range of bytes, an NSRangeException is raised.