System::Buffers::BuffersExtensions::CopyTo method

BuffersExtensions::CopyTo 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)
ParameterDescription
TThe type of elements.
ParameterTypeDescription
sourceconst ReadOnlySequence<T>&The sequence whose elements are copied.
destinationSpan<T>The destination span to fill.

See Also