src/Orleans.Serialization/Buffers/Reader.cs
/// <summary>
/// Skips the specified number of bytes.
/// </summary>
/// <param name="count">The number of bytes to skip.</param>
Skips the specified number of bytes.
Skips the specified number of bytes .
public void Skip(long count)
        {
            if (IsReadOnlySequenceInput)
            {
                var end = Position + count;
                while (Position < end)
                {
                    if (Position + _bufferSize >= end)
                    {
                        _bufferPos = (int)(end - _previousBuffersSize);
                    }
                    else
                    {
                        MoveNext();
                    }
                }
            }
            else if (IsSpanInput)
            {
                _bufferPos += (int)count;
                if (_bufferPos > _currentSpan.Length || count > int.MaxValue)
                {
                    ThrowInsufficientData();
                }
            }
            else if (_input is ReaderInput input)
            {
                input.Skip(count);
            }
            else
            {
                ThrowNotSupportedInput();
            }
        }
public void Skip ( long count ) { if ( IsReadOnlySequenceInput ) { var end = Position + count ; while ( Position < end ) { if ( Position + _bufferSize >= end ) { _bufferPos = ( int ) ( end - _previousBuffersSize ) ; } else { MoveNext ( ) ; } } } else if ( IsSpanInput ) { _bufferPos += ( int ) count ; if ( _bufferPos > _currentSpan . Length || count > int . MaxValue ) { ThrowInsufficientData ( ) ; } } else if ( _input is ReaderInput input ) { input . Skip ( count ) ; } else { ThrowNotSupportedInput ( ) ; } }
Skips the specified number of bytes.
Skips the specified number of bytes .
count
long
The number of bytes to skip.
The number of bytes to skip .