B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param value
   */
@param data
A wrapped object to store encoded raw data.
@param value
@param data A wrapped object to store encoded raw data . @param value
function encode(data, value) {
    if (value <= 30) {
      Octet.encode(data, value);
    } else {
      Octet.encode(data, 31);
      UintVar.encode(data, value);
    }
  }
function encode ( data , value ) { if ( value <= 30 ) { Octet . encode ( data , value ) ; } else { Octet . encode ( data , 31 ) ; UintVar . encode ( data , value ) ; } }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .