CopyTo()

BuffersExtensions::CopyTo(const ReadOnlySequence<T>&, Span<T>) method

Copies the elements of the given ReadOnlySequence to the destination span.

template<typename T> static void System::Buffers::BuffersExtensions::CopyTo(const ReadOnlySequence<T> &source, Span<T> destination)

Template parameters

ParameterDescription
TThe type of elements.

Arguments

ParameterTypeDescription
sourceconst ReadOnlySequence<T>&The sequence whose elements are copied.
destinationSpan<T>The destination span to fill.

See Also