B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return Decoded object containing an integer `forwardedCount` and an
   *         string-typed `originator` attributes.
   */
@param data
A wrapped object containing raw PDU data.

@return Decoded object containing an integer `forwardedCount` and an
string-typed `originator` attributes.
@param data A wrapped object containing raw PDU data . @return Decoded object containing an integer ` forwardedCount ` and an string - typed ` originator ` attributes .
function decode(data) {
    let length = WSP.ValueLength.decode(data);
    let end = data.offset + length;
    let result = {};
    result.forwardedCount = WSP.IntegerValue.decode(data);
    result.originator = Address.decode(data);
    if (data.offset != end) {
      data.offset = end;
    }
    return result;
  }
function decode ( data ) { let length = WSP . ValueLength . decode ( data ) ; let end = data . offset + length ; let result = { } ; result . forwardedCount = WSP . IntegerValue . decode ( data ) ; result . originator = Address . decode ( data ) ; if ( data . offset != end ) { data . offset = end ; } return result ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .