B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return A decoded integer value or an octets array of max 30 elements.
   *
   * @throws CodeError if the length read is not in 1..30.
   */
@param data
A wrapped object containing raw PDU data.

@return A decoded integer value or an octets array of max 30 elements.

@throws CodeError if the length read is not in 1..30.
@param data A wrapped object containing raw PDU data . @return A decoded integer value or an octets array of max 30 elements . @throws CodeError if the length read is not in 1 .. 30 .
function decode(data) {
    let length = Octet.decode(data);
    if ((length < 1) || (length > 30)) {
      throw new CodeError("Long-integer: invalid length " + length);
    }
    return this.decodeMultiOctetInteger(data, length);
  }
function decode ( data ) { let length = Octet . decode ( data ) ; if ( ( length < 1 ) || ( length > 30 ) ) { throw new CodeError ( "Long-integer: invalid length " + length ) ; } return this . decodeMultiOctetInteger ( data , length ) ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .