System::Buffers::ReadOnlySequence::Slice method

ReadOnlySequence::Slice(const SequencePosition&, const SequencePosition&) const method

Creates a slice of the sequence defined by a start and end position.

ReadOnlySequence System::Buffers::ReadOnlySequence<T>::Slice(const SequencePosition &start, const SequencePosition &end) const
ParameterTypeDescription
startconst SequencePosition&The position of the first element of the slice.
endconst SequencePosition&The position one past the last element of the slice.

ReturnValue

A ReadOnlySequence representing the requested sub-range.

See Also

ReadOnlySequence::Slice(int64_t) const method

Creates a slice of the sequence starting at the given offset.

ReadOnlySequence System::Buffers::ReadOnlySequence<T>::Slice(int64_t start) const
ParameterTypeDescription
startint64_tThe offset of the first element of the slice.

ReturnValue

A ReadOnlySequence representing the requested sub-range.

See Also

ReadOnlySequence::Slice(int64_t, int64_t) const method

Creates a slice of the sequence defined by a start and length.

ReadOnlySequence System::Buffers::ReadOnlySequence<T>::Slice(int64_t start, int64_t length) const
ParameterTypeDescription
startint64_tThe offset of the first element of the slice.
lengthint64_tThe number of elements in the slice.

ReturnValue

A ReadOnlySequence representing the requested sub-range.

See Also