Function

AESizeOfFlattenedDesc

Returns the amount of buffer space needed to store the descriptor after flattening it.

Declaration

Size AESizeOfFlattenedDesc(const AEDesc *theAEDesc);

Parameters

theAEDesc

A pointer to the descriptor to be flattened. See AEDesc.

Return Value

The size, in bytes, required to store the flattened descriptor.

Discussion

You call this function before calling AEFlattenDesc to determine the required size of the buffer for the flatten operation.

Version-Notes

Thread safe starting in OS X v10.2.

See Also

Serializing Apple Event Data

AEFlattenDesc

Flattens the specified descriptor and stores the data in the supplied buffer.

AEUnflattenDesc

Unflattens the data in the passed buffer and creates a descriptor from it.