B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return A decoded object containing `name` and `value` properties or null
   *         in case of a failed parsing. The `name` property must be a string,
   *         but the `value` property can be many different types depending on
   *         `name`.
   */
@param data
A wrapped object containing raw PDU data.

@return A decoded object containing `name` and `value` properties or null
in case of a failed parsing.
@param data A wrapped object containing raw PDU data . @return A decoded object containing ` name ` and ` value ` properties or null in case of a failed parsing .
function decode(data) {
    let name = this.decodeParameterName(data);
    let value = WSP.decodeAlternatives(data, null,
                                       WSP.ConstrainedEncoding, WSP.TextString);
    return {
      name: name,
      value: value,
    };
  }
function decode ( data ) { let name = this . decodeParameterName ( data ) ; let value = WSP . decodeAlternatives ( data , null , WSP . ConstrainedEncoding , WSP . TextString ) ; return { name : name , value : value , } ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .