SMPPEX.Pdu.Multipart.prepend_message_with_part_info
You're seeing just the function
prepend_message_with_part_info
, go back to SMPPEX.Pdu.Multipart module for more information.
Specs
prepend_message_with_part_info(actual_part_info(), binary()) :: {:error, term()} | {:ok, binary()}
Prepends message with multipart info encoded as UDH.
Example
iex> SMPPEX.Pdu.Multipart.prepend_message_with_part_info({3,2,1}, "message")
{:ok, <<0x05, 0x00, 0x03, 0x03, 0x02, 0x01, "message">>}
iex> SMPPEX.Pdu.Multipart.prepend_message_with_part_info({256,2,1}, "message")
{:ok, <<0x06, 0x08, 0x04, 0x01, 0x00, 0x02, 0x01, "message">>}