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