![]() |
AECoercePtr |
||||
Header: | AEDataModel.h | Carbon status: | Supported | |
Coerces data to a desired descriptor type and creates a descriptor record containing the newly coerced data.
OSErr AECoercePtr ( DescType typeCode, const void *dataPtr, Size dataSize, DescType toType, AEDesc *result );
The descriptor type of the source data. For a list of AppleScripts predefined descriptor types, see
A pointer to the data to coerce.
The length, in bytes, of the data to coerce.
The desired descriptor type of the resulting descriptor record. For a list of AppleScripts predefined descriptor types, see
A pointer to a descriptor record. On successful return, a descriptor containing the coerced data and matching the descriptor type specified in toType. On error, a null descriptor. Your application should always call the AEDisposeDesc function to dispose of the resulting descriptor record after it has finished using it.
A result code.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. (Last Updated 5/8/2000)