Decodes a buffer of data whose types are unspecified.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
NSCoder’s implementation invokes
decode to decode the data as a series of bytes, which this method then places into a buffer and returns. The buffer’s length is returned by reference in
num. If you need the bytes beyond the scope of the current
@autoreleasepool block, you must copy them.
This method matches an
encode message used during encoding.