AEStreamWriteAEDesc(_:_:)
Copies an existing descriptor into an AEStreamRef.
Declaration
func AEStreamWriteAEDesc(_ ref: AEStreamRef!, _ desc: UnsafePointer<AEDesc>!) -> OSStatusParameters
- 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
AEStreamClose(_:_:)AEStreamCloseDesc(_:)AEStreamCloseList(_:)AEStreamCloseRecord(_:)AEStreamCreateEvent(_:_:_:_:_:_:_:)AEStreamOpen()AEStreamOpenDesc(_:_:)AEStreamOpenEvent(_:)AEStreamOpenKeyDesc(_:_:_:)AEStreamOpenList(_:)AEStreamOpenRecord(_:_:)AEStreamOptionalParam(_:_:)AEStreamSetRecordType(_:_:)AEStreamWriteData(_:_:_:)AEStreamWriteDesc(_:_:_:_:)AEStreamWriteKey(_:_:)AEStreamWriteKeyDesc(_:_:_:_:_:)