[Documentation] Add doc comments for NSCoder #837
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds documentation comments for the following public/open declarations:
Classes:
NSCoder
encodeValue(ofObjCType:at:)
encode(_:)
(Data
)decodeValue(ofObjCType:at:)
decodeData()
version(forClassName:)
decodeObject(of:forKey:)
(.Type
,String
)decodeObject(of:forKey:)
([AnyClass]?
,String
)decodeTopLevelObject()
decodeTopLevelObject(forKey:)
decodeTopLevelObject(of:forKey:)
(.Type
,String
)decodeTopLevelObject(of:forKey:)
([AnyClass]
,String
)encode(_:)
(Any?
)encodeRootObject(_:)
encodeBycopyObject(_:)
encodeByrefObject(_:)
encodeConditionalObject(_:)
encodeArray(ofObjCType:count:at:)
encodeBytes(_:length:)
decodeObject()
decodeArray(ofObjCType:count:at:)
encodePropertyList(_:)
decodePropertyList()
systemVersion
allowsKeyedCoding
encode(_:forKey:)
(Any?
,String
)encodeConditionalObject(_:forKey:)
encode(_:forKey:)
(Bool
,String
)encode(_:forKey:)
(Int32
,String
)encode(_:forKey:)
(Int64
,String
)encode(_:forKey:)
(Float
,String
)encode(_:forKey:)
(Double
,String
)encodeBytes(_:length:forKey:)
containsValue(forKey:)
decodeObject(forKey:)
decodeBool(forKey:)
decodeCInt(forKey:)
decodeInt32(forKey:)
decodeInt64(forKey:)
decodeFloat(forKey:)
decodeDouble(forKey:)
withDecodedUnsafeBufferPointer(forKey:body:)
encode(_:forKey:)
(Int
,String
)decodeInteger(forKey:)
requiresSecureCoding
decodePropertyListForKey(_:)
allowedClasses
failWithError(_:)
decodingFailurePolicy
error
Protocols:
NSCoding
encode(with:)
init(coder:)
NSSecureCoding
supportsSecureCoding
Enums:
NSCoder.DecodingFailurePolicy
setErrorAndReturn
All the comments have been carefully reviewed. The terms referring to Objective-C semantics
have been substituted with ones more appropriate for Swift semantics (e. g. "receiver" → "instance" etc.).