B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param type
   *        A content type string.
   */
@param data
A wrapped object to store encoded raw data.
@param type
A content type string.
@param data A wrapped object to store encoded raw data . @param type A content type string .
function encode(data, type) {
    let entry = WSP_WELL_KNOWN_CONTENT_TYPES[type.toLowerCase()];
    if (entry) {
      ConstrainedEncoding.encode(data, entry.number);
    } else {
      ConstrainedEncoding.encode(data, type);
    }
  }
function encode ( data , type ) { let entry = WSP_WELL_KNOWN_CONTENT_TYPES [ type . toLowerCase ( ) ] ; if ( entry ) { ConstrainedEncoding . encode ( data , entry . number ) ; } else { ConstrainedEncoding . encode ( data , type ) ; } }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .