Decodes a stream of bytes associated with a given key.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A key in the archive within the current decoding scope.
keymust not be
Upon return, contains the number of bytes returned.
The stream of bytes associated with the key
key does not exist.
The returned value is a pointer to a temporary buffer owned by the receiver. The buffer goes away with the unarchiver, not the containing autorelease pool block. You must copy the bytes into your own buffer if you need the data to persist beyond the life of the receiver.