B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return A decoded object containing `media` and `params` properties or
   *         null in case of a failed parsing. The `media` property must be a
   *         string, and the `params` property is null or a hash map from a
   *         string to an value of unspecified type.
   */
@param data
A wrapped object containing raw PDU data.

@return A decoded object containing `media` and `params` properties or
null in case of a failed parsing. The `media` property must be a
string, and the `params` property is null or a hash map from a
string to an value of unspecified type.
@param data A wrapped object containing raw PDU data . @return A decoded object containing ` media ` and ` params ` properties or null in case of a failed parsing . The ` media ` property must be a string and the ` params ` property is null or a hash map from a string to an value of unspecified type .
function decode(data) {
    let begin = data.offset;
    try {
      return this.decodeConstrainedMedia(data);
    } catch (e) {
      data.offset = begin;
      return this.decodeContentGeneralForm(data);
    }
  }
function decode ( data ) { let begin = data . offset ; try { return this . decodeConstrainedMedia ( data ) ; } catch ( e ) { data . offset = begin ; return this . decodeContentGeneralForm ( data ) ; } }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .