SMPPEX.Pdu.UDH.has_udh-question-mark

You're seeing just the function has_udh-question-mark, go back to SMPPEX.Pdu.UDH module for more information.

Specs

has_udh?(pdu :: SMPPEX.Pdu.t()) :: boolean()

Checks if message in PDU has UDH (by inspecting esm_class field).

Example

iex> pdu = SMPPEX.Pdu.new({1,0,1}, %{esm_class: 0}, %{})
iex> SMPPEX.Pdu.UDH.has_udh?(pdu)
false

iex> pdu = SMPPEX.Pdu.new({1,0,1}, %{esm_class: 0b01000000}, %{})
iex> SMPPEX.Pdu.UDH.has_udh?(pdu)
true