B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return A object with a string property `charset` and a optional integer
   *         property `q`.
   */
@param data
A wrapped object containing raw PDU data.

@return A object with a string property `charset` and a optional integer
property `q`.
@param data A wrapped object containing raw PDU data . @return A object with a string property ` charset ` and a optional integer property ` q ` .
function decode(data) {
    let begin = data.offset;
    try {
      return this.decodeConstrainedCharset(data);
    } catch (e) {
      data.offset = begin;
      return this.decodeAcceptCharsetGeneralForm(data);
    }
  }
function decode ( data ) { let begin = data . offset ; try { return this . decodeConstrainedCharset ( data ) ; } catch ( e ) { data . offset = begin ; return this . decodeAcceptCharsetGeneralForm ( data ) ; } }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .