B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param version
   *        A binary encoded version number.
   */
@param data
A wrapped object to store encoded raw data.
@param version
A binary encoded version number.
@param data A wrapped object to store encoded raw data . @param version A binary encoded version number .
function encode(data, version) {
    if ((version < 0x10) || (version >= 0x80)) {
      throw new CodeError("Version-value: invalid version " + version);
    }
    ShortInteger.encode(data, version);
  }
function encode ( data , version ) { if ( ( version < 0x10 ) || ( version >= 0x80 ) ) { throw new CodeError ( "Version-value: invalid version " + version ) ; } ShortInteger . encode ( data , version ) ; }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .