Contents

AEStreamWriteAEDesc(_:_:)

Copies an existing descriptor into an AEStreamRef.

Declaration

func AEStreamWriteAEDesc(_ ref: AEStreamRef!, _ desc: UnsafePointer<AEDesc>!) -> OSStatus

Parameters

  • ref:

    An Aestreamref containing the stream data.

  • desc:

    A pointer to the descriptor you want to copy into the stream. See Aedesc.

Return Value

A result code. See Result Codes.

Discussion

You can use this routine to incorporate an existing descriptor into the stream. For example, you could use this routine if you had a complex descriptor you wanted to add to multiple streams, but which would be costly to create each time.

Do not use AEStreamOpenDesc(_:_:) and AEStreamCloseDesc(_:) with this routine to open and close the descriptor.

See Also

Creating Apple Event Structures Using Streams