OBEXAddLengthHeader

Function OBEXAddLengthHeader 

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

Add a CFStringRef to a dictionary of OBEXheaders.

Parameter length: Value of Length header you want to add to the OBEX header dictionary.

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

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

Length header - OBEX Spec, 2.2.4: 4 byte unsigned integer

§Safety

  • dict_ref generics must be of the correct type.
  • dict_ref might not allow None.