B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param state
   *        A numeric state value to be encoded.
   *
   * @throws CodeError if state is not in the range 128..132.
   */
@param data
A wrapped object to store encoded raw data.
@param state
A numeric state value to be encoded.

@throws CodeError if state is not in the range 128..132.
@param data A wrapped object to store encoded raw data . @param state A numeric state value to be encoded . @throws CodeError if state is not in the range 128 .. 132 .
function encode(data, state) {
    if ((state < 128) || (state > 132)) {
      throw new WSP.CodeError("MM-state-value: invalid state " + state);
    }
    WSP.Octet.encode(data, state);
  }
function encode ( data , state ) { if ( ( state < 128 ) || ( state > 132 ) ) { throw new WSP . CodeError ( "MM-state-value: invalid state " + state ) ; } WSP . Octet . encode ( data , state ) ; }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .