Example #1
0
 /// <summary>
 /// Moves forward the underlying <see cref="IPipelineWriter"/>'s write cursor but does not commit the data.
 /// </summary>
 /// <param name="bytesWritten">number of bytes to be marked as written.</param>
 /// <remarks>Forwards the start of available <see cref="Memory"/> by <paramref name="bytesWritten"/>.</remarks>
 /// <exception cref="ArgumentException"><paramref name="bytesWritten"/> is larger than the current data available data.</exception>
 /// <exception cref="ArgumentOutOfRangeException"><paramref name="bytesWritten"/> is negative.</exception>
 public void Advance(int bytesWritten)
 {
     _pipe.AdvanceWriter(bytesWritten);
 }