Add a byte sequence header to a dictionary of OBEXheaders.
- macOS 10.6+
bytes you want to put in the byte sequence header.
length of the bytes you want to put in the byte sequence header.
dictionary you have allocated to hold the headers. Make sure it's mutable.
Error code, kOBEXSuccess (0) if success.
Byte Sequence header - OBEX Spec, 2.2.5: Byte sequence. One thing of important note here - since we don't know what Header Identifier and length you intend to use here, you MUST include your own identifier and length in the data you pass. Thus, your data must be in this format: <1:HI><2:LENGTH><n:(<TAG><LENGTH><VALUE>)> Also, note that LENGTH = (3 + n), (1 for HI, 2 for the 2 bytes of length information, plus your n bytes of custom data). Be careful here to not mess up these values, as it could adversely affect the ability of the remote-device's headers parser.