Contents

AEStreamOpenDesc(_:_:)

Marks the beginning of a descriptor in an AEStreamRef.

Declaration

func AEStreamOpenDesc(_ ref: AEStreamRef!, _ newType: DescType) -> OSStatus

Parameters

  • ref:

    An Aestreamref containing the stream data.

  • newType:

    A type code for the new AEDesc being added to the stream. See Desctype.

Return Value

A result code. See Result Codes.

Discussion

Use this routine to mark the beginning of a descriptor definition in an AEDesc. After calling this routine, you should call AEStreamWriteData(_:_:_:) one or more times to write the descriptor data to the stream. When you are done writing data, you must call AEStreamCloseDesc(_:) to complete the descriptor definition.

See Also

Creating Apple Event Structures Using Streams