GetPosition()

ReadOnlySequence::GetPosition(int64_t) const method

Gets the position at the specified zero-based offset from the start of the sequence.

SequencePosition System::Buffers::ReadOnlySequence<T>::GetPosition(int64_t offset) const

Arguments

ParameterTypeDescription
offsetint64_tThe number of elements to advance.

Return Value

The resulting SequencePosition.

ReadOnlySequence::GetPosition(int64_t, const SequencePosition&) const method

Gets the position at the specified zero-based offset from the given origin position.

SequencePosition System::Buffers::ReadOnlySequence<T>::GetPosition(int64_t offset, const SequencePosition &origin) const

Arguments

ParameterTypeDescription
offsetint64_tThe number of elements to advance.
originconst SequencePosition&The position from which the offset is measured.

Return Value

The resulting SequencePosition.

See Also