SMPPEX.Pdu.Multipart.multipart_ie

You're seeing just the function multipart_ie, go back to SMPPEX.Pdu.Multipart module for more information.

Specs

multipart_ie(actual_part_info()) ::
  {:error, term()} | {:ok, SMPPEX.Pdu.UDH.ie()}

Generates IE encoding multipart information.

Example

iex> SMPPEX.Pdu.Multipart.multipart_ie({3,2,1})
{:ok, {0, <<0x03, 0x02, 0x01>>}}

iex> SMPPEX.Pdu.Multipart.multipart_ie({256,2,1})
{:ok, {8, <<0x01, 0x00, 0x02, 0x01>>}}

iex> SMPPEX.Pdu.Multipart.multipart_ie({1, 1, 256})
{:error, "Invalid sequence number in multipart info"}