MSMutableProtectedData appendBytes:length:error method
Appends the specified number of plaintext bytes from a given buffer to the receiver. First the bytes are encrypted, and then the cipher text bytes are appended to the receiver.
Signature
- (BOOL)appendBytes:(const void *)bytes length:(NSUInteger)length error:(NSError **)errorPtr;
Parameters
Name | Datatype | Notes |
---|---|---|
bytes |
const void * |
Required. The buffer that contains the plaintext data to be encrypted and appended. |
length |
NSUInteger |
Required. The number of bytes to copy. |
errorPtr |
NSError ** |
Optional. If an error occurs, contains the error code and details. |
Returns
Type: BOOL
YES if the operation is successful; otherwise, NO. If the operation isn't successful, the errorPtr parameter references an NSError object that contains more information about the error.
Defined in
MSMutableProtectedData.h
Supported Platforms
Minimum supported OS versions |
iOS 7.0 and OS X 10.8 |
Remarks
The specified number of bytes are copied from the buffer, encrypted, and appended to the receiver's data.