다음을 통해 공유


MSProtectedData subdataWithRange method

Returns an NSData data object that contains a copy of the receiver s plaintext bytes that fall within the limits specified by a given range. Decryption is transparently performed during the execution of the method.

Signature

- (NSData *)subdataWithRange:(NSRange)range;

Parameters

Name Datatype Description
range
NSRange
Required. The range of plaintext bytes in the receiver s data to copy. The range must lie within the range of bytes of the receiver s data.

Returns

A pointer to an NSData object that contains a copy of the receiver s plaintext bytes that fall within the limits specified by the range parameter.

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.

See also

MSProtectedData Class