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

@return A decoded integer.
@param data A wrapped object containing raw PDU data . @return A decoded integer .
function decode(data) {
    let value = WSP.Octet.decode(data);
    if (value == MMS_PDU_ERROR_OK) {
      return value;
    }
    if ((value >= MMS_PDU_ERROR_TRANSIENT_FAILURE) && (value < 256)) {
      return value;
    }
    return MMS_PDU_ERROR_PERMANENT_FAILURE;
  }
function decode ( data ) { let value = WSP . Octet . decode ( data ) ; if ( value == MMS_PDU_ERROR_OK ) { return value ; } if ( ( value >= MMS_PDU_ERROR_TRANSIENT_FAILURE ) && ( value < 256 ) ) { return value ; } return MMS_PDU_ERROR_PERMANENT_FAILURE ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .
// Any other values SHALL NOT be used. They are reserved for future use. // An MMS Client that receives such a reserved value MUST react the same // as it does to the value 224 (Error-permanent-failure).