B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return A integer value for each class.
   *
   * @throws CodeError if decoded value is not in range 128..135.
   */
@param data
A wrapped object containing raw PDU data.

@return A integer value for each class.

@throws CodeError if decoded value is not in range 128..135.
@param data A wrapped object containing raw PDU data . @return A integer value for each class . @throws CodeError if decoded value is not in range 128 .. 135 .
function decode(data) {
    let value = WSP.Octet.decode(data);
    if ((value >= 128) && (value <= 135)) {
      return value;
    }
    throw new WSP.CodeError("Content-class-value: invalid class " + value);
  }
function decode ( data ) { let value = WSP . Octet . decode ( data ) ; if ( ( value >= 128 ) && ( value <= 135 ) ) { return value ; } throw new WSP . CodeError ( "Content-class-value: invalid class " + value ) ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .