System::Buffers::ReadOnlySequence::GetPosition method

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
ParameterTypeDescription
offsetint64_tThe number of elements to advance.

ReturnValue

The resulting SequencePosition.

See Also

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
ParameterTypeDescription
offsetint64_tThe number of elements to advance.
originconst SequencePosition&The position from which the offset is measured.

ReturnValue

The resulting SequencePosition.

See Also