B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param octet
   *        Octet value to be encoded.
   */
@param data
A wrapped object to store encoded raw data.
@param octet
Octet value to be encoded.
@param data A wrapped object to store encoded raw data . @param octet Octet value to be encoded .
function encode(data, octet) {
    if (data.offset >= data.array.length) {
      data.array.push(octet);
      data.offset++;
    } else {
      data.array[data.offset++] = octet;
    }
  }
function encode ( data , octet ) { if ( data . offset >= data . array . length ) { data . array . push ( octet ) ; data . offset ++ ; } else { data . array [ data . offset ++ ] = octet ; } }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .