isValid (index) {
    if (!_isValidIndex(index)) {
      throw new TypeError('index must be an integer')
    } else {
      // Increment index since Lua arrays are 1-indexed
      index += 1
      const value = ref.alloc('int')
      const retcode = connectorBinding.api.RTI_Connector_get_boolean_from_infos(
        this.input.connector.native,
        value,
        this.input.name,
        index,
        'valid_data')
      _checkRetcode(retcode)
      if (retcode === _ReturnCodes.noData) {
        return null
      }
      return value.deref()
    }
  }
/**
   * Checks if the sample at the given index contains valid data.
   *
   * @param {number} index - The index of the sample in the :class:`Input`'s 
   *   queue to check for valid data
   * @returns{boolean} True if the sample contains valid data
   * @private
   */
Checks if the sample at the given index contains valid data.
@param {number} index - The index of the sample in the :class:`Input`'s
queue to check for valid data
@returns{boolean} True if the sample contains valid data
@private
Checks if the sample at the given index contains valid data . @param { number } index - The index of the sample in the : class : ` Input ` ' s queue to check for valid data @returns { boolean } True if the sample contains valid data @private
isValid (index) {
    if (!_isValidIndex(index)) {
      throw new TypeError('index must be an integer')
    } else {
      index += 1
      const value = ref.alloc('int')
      const retcode = connectorBinding.api.RTI_Connector_get_boolean_from_infos(
        this.input.connector.native,
        value,
        this.input.name,
        index,
        'valid_data')
      _checkRetcode(retcode)
      if (retcode === _ReturnCodes.noData) {
        return null
      }
      return value.deref()
    }
  }
isValid ( index ) { if ( ! _isValidIndex ( index ) ) { throw new TypeError ( 'index must be an integer' ) } else { index += 1 const value = ref . alloc ( 'int' ) const retcode = connectorBinding . api . RTI_Connector_get_boolean_from_infos ( this . input . connector . native , value , this . input . name , index , 'valid_data' ) _checkRetcode ( retcode ) if ( retcode === _ReturnCodes . noData ) { return null } return value . deref ( ) } }
Checks if the sample at the given index contains valid data.
Checks if the sample at the given index contains valid data .
// Increment index since Lua arrays are 1-indexed