B2G/gecko/dom/mobilemessage/src/ril/MmsPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return Boolean true or false.
   *
   * @throws CodeError if read octet equals to neither 128 nor 129.
   */
@param data
A wrapped object containing raw PDU data.

@return Boolean true or false.

@throws CodeError if read octet equals to neither 128 nor 129.
@param data A wrapped object containing raw PDU data . @return Boolean true or false . @throws CodeError if read octet equals to neither 128 nor 129 .
function decode(data) {
    let value = WSP.Octet.decode(data);
    if ((value != 128) && (value != 129)) {
      throw new WSP.CodeError("Boolean-value: invalid value " + value);
    }
    return value == 128;
  }
function decode ( data ) { let value = WSP . Octet . decode ( data ) ; if ( ( value != 128 ) && ( value != 129 ) ) { throw new WSP . CodeError ( "Boolean-value: invalid value " + value ) ; } return value == 128 ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .