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

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