B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param klass
   */
@param data
A wrapped object to store encoded raw data.
@param klass
@param data A wrapped object to store encoded raw data . @param klass
function encode(data, klass) {
    let index = this.WELL_KNOWN_CLASSES.indexOf(klass.toLowerCase());
    if (index >= 0) {
      WSP.Octet.encode(data, index + 128);
    } else {
      WSP.TokenText.encode(data, klass);
    }
  }
function encode ( data , klass ) { let index = this . WELL_KNOWN_CLASSES . indexOf ( klass . toLowerCase ( ) ) ; if ( index >= 0 ) { WSP . Octet . encode ( data , index + 128 ) ; } else { WSP . TokenText . encode ( data , klass ) ; } }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .