B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param value
   *        An integer or a string value.
   */
@param data
A wrapped object to store encoded raw data.
@param value
An integer or a string value.
@param data A wrapped object to store encoded raw data . @param value An integer or a string value .
function encode(data, value) {
    if (typeof value == "number") {
      ShortInteger.encode(data, value);
    } else {
      TextString.encode(data, value);
    }
  }
function encode ( data , value ) { if ( typeof value == "number" ) { ShortInteger . encode ( data , value ) ; } else { TextString . encode ( data , value ) ; } }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .