isAtEnd
A Boolean value that indicates whether the receiver has reached the end of the encoded data while decoding.
Declaration
var isAtEnd: Bool { get }Discussion
true if the receiver has reached the end of the encoded data while decoding, otherwise false.
You can invoke this method after invoking decodeObject to discover whether the archive contains extra data following the encoded object graph. If it does, you can either ignore this anomaly or consider it an error.