Contents

decodeValue(ofObjCType:at:)

Decodes a single value, whose Objective-C type is given by valueType.

Declaration

func decodeValue(ofObjCType type: UnsafePointer<CChar>, at data: UnsafeMutableRawPointer)

Discussion

valueType must contain exactly one type code, and the buffer specified by data must be large enough to hold the value corresponding to that type code. For information on creating an Objective-C type code suitable for valueType, see Type Encodings.

Subclasses must override this method and provide an implementation to decode the value. In your overriding implementation, decode the value into the buffer beginning at data.

This method matches an encodeValue(ofObjCType:at:) message used during encoding.

See Also

Decoding General Data