B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return Decoded integer value.
   */
@param data
A wrapped object containing raw PDU data.

@return Decoded integer value.
@param data A wrapped object containing raw PDU data . @return Decoded integer value .
function decode(data) {
    let value = Octet.decode(data);
    let result = value & 0x7F;
    while (value & 0x80) {
      value = Octet.decode(data);
      result = result * 128 + (value & 0x7F);
    }
    return result;
  }
function decode ( data ) { let value = Octet . decode ( data ) ; let result = value & 0x7F ; while ( value & 0x80 ) { value = Octet . decode ( data ) ; result = result * 128 + ( value & 0x7F ) ; } return result ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .