OBEXAddWhoHeader

Function OBEXAddWhoHeader 

Source
pub unsafe extern "C-unwind" fn OBEXAddWhoHeader(
    in_header_data: *const c_void,
    in_header_data_length: u32,
    dict_ref: Option<&CFMutableDictionary>,
) -> OBEXError
Available on crate features OBEX and objc2-core-foundation only.
Expand description

Add bytes of data to a dictionary of OBEXheaders.

Parameter inHeaderData: Who header data.

Parameter inHeaderDataLength: Length of Who header data.

Parameter dictRef: dictionary you have allocated to hold the headers. Make sure it’s mutable.

Returns: Error code, kOBEXSuccess (0) if success.

Who headers - OBEX Spec, 2.2.10: Byte Sequence

§Safety

  • in_header_data must be a valid pointer.
  • dict_ref generics must be of the correct type.
  • dict_ref might not allow None.