/// <summary> /// Moves samples from the <paramref name="other"/> pipe instance to /// this instance. /// </summary> /// <param name="other">Other pipe instance where from the receive the /// data.</param> public void MoveSamples(FifoSamplePipe <TSampletype> other) { var oNumSamples = other.AvailableSamples; PutSamples(other.PtrBegin(), oNumSamples); other.ReceiveSamples(oNumSamples); }
/// <summary> /// Adjusts book-keeping so that given number of samples are removed /// from beginning of the sample buffer without copying them anywhere. /// /// Used to reduce the number of samples in the buffer when accessing /// the sample buffer directly with <see cref="PtrBegin"/> function. /// </summary> ///<param name="maxSamples">Remove this many samples from the beginning ///of pipe.</param> public override int ReceiveSamples(int maxSamples) { return(Output.ReceiveSamples(maxSamples)); }