System::Runtime::InteropServices::MemoryMarshal::GetReference method

MemoryMarshal::GetReference(const ReadOnlySpan<T>&) method

Gets a reference to the first element of the specified read-only span.

template<typename T> static T & System::Runtime::InteropServices::MemoryMarshal::GetReference(const ReadOnlySpan<T> &span)
ParameterDescription
TThe type of elements in the read-only span.
ParameterTypeDescription
spanconst ReadOnlySpan<T>&The read-only span to access.

ReturnValue

A reference to the first element of the read-only span.

See Also

MemoryMarshal::GetReference(const Span<T>&) method

Gets a reference to the first element of the specified span.

template<typename T> static T & System::Runtime::InteropServices::MemoryMarshal::GetReference(const Span<T> &span)
ParameterDescription
TThe type of elements in the span.
ParameterTypeDescription
spanconst Span<T>&The span to access.

ReturnValue

A reference to the first element of the span.

See Also