Пример #1
0
 /// <summary>
 ///     Advances the stream a specified number of bytes.
 ///     It is not possible to revert this action.
 /// </summary>
 /// <param name="offset">Number of bytes to skip ahead.</param>
 /// <param name="origin">
 ///     Use only values of <see cref="SeekOrigin.Begin" /> or <see cref="SeekOrigin.Current" /> (identical meaning).
 /// </param>
 public override long Seek(long offset, SeekOrigin origin)
 {
     if (origin == SeekOrigin.End)
     {
         throw new NotSupportedException("Seek only possible from current stream position (Begin/Current).");
     }
     RingBuffer.Skip((int)offset);
     return(offset);
 }