AEUnflattenDescFromBytes

Function AEUnflattenDescFromBytes 

Source
pub unsafe extern "C-unwind" fn AEUnflattenDescFromBytes(
    buffer: *const c_void,
    buffer_len: usize,
    result: *mut AEDesc,
) -> i32
Available on crate feature AEDataModel only.
Expand description

Allocates an AEDesc (given a Null Desc) constructed from a flattened data buffer produced by calling AEFlattenDesc.

Parameter buffer: A pointer to data produced by AEFlattenDesc

Parameter bufferLen: The size of the data referenced by buffer

Parameter result: On successful completion, a pointer to an AEDesc* containing the unflattened descriptor. The caller is responsible for disposing of it.

Returns: noErr on success, paramErr if the buffer could not be parsed, or memFullErr for irrational memory sizes.

ยงSafety

  • buffer must be a valid pointer.
  • result must be a valid pointer.