B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param priority
   *        A numeric priority value to be encoded.
   */
@param data
A wrapped object to store encoded raw data.
@param priority
A numeric priority value to be encoded.
@param data A wrapped object to store encoded raw data . @param priority A numeric priority value to be encoded .
function encode(data, priority) {
    if ((priority < 128) || (priority > 130)) {
      throw new WSP.CodeError("Priority-value: invalid priority " + priority);
    }
    WSP.Octet.encode(data, priority);
  }
function encode ( data , priority ) { if ( ( priority < 128 ) || ( priority > 130 ) ) { throw new WSP . CodeError ( "Priority-value: invalid priority " + priority ) ; } WSP . Octet . encode ( data , priority ) ; }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .