Contents

OBEXAddBodyHeader(_:_:_:_:)

Add bytes of data to a dictionary of OBEXheaders.

Declaration

func OBEXAddBodyHeader(_ inHeaderData: UnsafeRawPointer!, _ inHeaderDataLength: UInt32, _ isEndOfBody: Bool, _ dictRef: CFMutableDictionary!) -> OBEXError

Parameters

  • inHeaderData:

    Body header data.

  • inHeaderDataLength:

    Length of Body header data.

  • isEndOfBody:

    Set this flag if you want an end of body header instead of a body header.

  • dictRef:

    Dictionary you have allocated to hold the headers. Make sure it’s mutable.

Return Value

Error code, kOBEXSuccess (0) if success.

Discussion

Body,EndOfBody headers - OBEX Spec, 2.2.9: Byte Sequence

See Also

Miscellaneous