public override void Update(out BehaviourParameter.ErrorInfo errorInfo, ref SinkInParameter parameter, ref SinkOutStatus outStatus, PoolMapper mapper) { errorInfo = new BehaviourParameter.ErrorInfo(); outStatus = new SinkOutStatus(); Debug.Assert(IsTypeValid(ref parameter)); ref CircularBufferParameter inputDeviceParameter = ref MemoryMarshal.Cast <byte, CircularBufferParameter>(parameter.SpecificData)[0];
/// <summary> /// Update the internal common parameters from user parameter. /// </summary> /// <param name="parameter">The user parameter.</param> protected void UpdateStandardParameter(ref SinkInParameter parameter) { if (IsUsed != parameter.IsUsed) { IsUsed = parameter.IsUsed; NodeId = parameter.NodeId; } }
/// <summary> /// Update the internal state from user parameter. /// </summary> /// <param name="errorInfo">The possible <see cref="ErrorInfo"/> that was generated.</param> /// <param name="parameter">The user parameter.</param> /// <param name="outStatus">The user output status.</param> /// <param name="mapper">The mapper to use.</param> public virtual void Update(out ErrorInfo errorInfo, ref SinkInParameter parameter, ref SinkOutStatus outStatus, PoolMapper mapper) { Debug.Assert(IsTypeValid(ref parameter)); errorInfo = new ErrorInfo(); }
/// <summary> /// Check if the <see cref="SinkType"/> sent by the user match the internal <see cref="SinkType"/>. /// </summary> /// <param name="parameter">The user parameter.</param> /// <returns>Return true, if the <see cref="SinkType"/> sent by the user match the internal <see cref="SinkType"/>.</returns> public bool IsTypeValid(ref SinkInParameter parameter) { return(parameter.Type == TargetSinkType); }