Skip to main content

Name

smpp_decode_integer — Decode an octet string into integer

Synopsis

#include "modules/mobility/smpp/smpp_util.h"

| long **smpp_decode_integer** ( | os, |   | |   | pos, |   | |   | octets); |   |

string * <var class="pdparam">os</var>; long <var class="pdparam">pos</var>; int <var class="pdparam">octets</var>;

Description

**Configuration Change. ** This feature is available starting from Momentum 3.2.

Decode an octet string into integer. pos is the offset of the beginning of the octet string in string os. octets is the length of the data.

Parameters

os

The input string holding the octet string.

pos

The offset of the octet string to be decoded.

octets

The length of the octet string to be decoded.

Return Values

The integer (long) decoded value.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?