B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return Decoded integer value.
   *
   * @throws CodeError if the octet read is less than 0x80.
   */
@param data
A wrapped object containing raw PDU data.

@return Decoded integer value.

@throws CodeError if the octet read is less than 0x80.
@param data A wrapped object containing raw PDU data . @return Decoded integer value . @throws CodeError if the octet read is less than 0x80 .
function decode(data) {
    let value = Octet.decode(data);
    if (!(value & 0x80)) {
      throw new CodeError("Short-integer: invalid value " + value);
    }
    return (value & 0x7F);
  }
function decode ( data ) { let value = Octet . decode ( data ) ; if ( ! ( value & 0x80 ) ) { throw new CodeError ( "Short-integer: invalid value " + value ) ; } return ( value & 0x7F ) ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .