encodeValue(ofObjCType:at:)
Encodes a value of the given type at the given address.
Declaration
func encodeValue(ofObjCType type: UnsafePointer<CChar>, at addr: UnsafeRawPointer)Discussion
Subclasses must override this method, and match it with a subsequent decodeValue(ofObjCType:at:) message.
When calling this method, valueType must contain exactly one type code.
For information on creating an Objective-C type code suitable for valueType, see Type Encodings.
Special Considerations
You should not use this method to encode Objective-C objects. See decodeArray(ofObjCType:count:at:) for more details.
See Also
Encoding General Data
encodeArray(ofObjCType:count:at:)encode(_:forKey:)encodeBycopyObject(_:)encodeByrefObject(_:)encodeBytes(_:length:)encodeBytes(_:length:forKey:)encodeConditionalObject(_:)encodeConditionalObject(_:forKey:)encode(_:)encode(_:forKey:)encode(_:forKey:)encodeCInt(_:forKey:)encode(_:forKey:)encode(_:forKey:)encode(_:forKey:)