Contents

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