B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   * @param end
   *        Ending offset of following parameters.
   *
   * @return An array of decoded objects.
   */
@param data
A wrapped object containing raw PDU data.
@param end
Ending offset of following parameters.

@return An array of decoded objects.
@param data A wrapped object containing raw PDU data . @param end Ending offset of following parameters . @return An array of decoded objects .
function decodeMultiple(data, end) {
    let params, param;
    while (data.offset < end) {
      try {
        param = this.decode(data);
      } catch (e) {
        break;
      }
      if (param) {
        if (!params) {
          params = {};
        }
        params[param.name] = param.value;
      }
    }
    return params;
  }
function decodeMultiple ( data , end ) { let params , param ; while ( data . offset < end ) { try { param = this . decode ( data ) ; } catch ( e ) { break ; } if ( param ) { if ( ! params ) { params = { } ; } params [ param . name ] = param . value ; } } return params ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .