ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn.FromManaged Método

Definição

public:
 void FromManaged(ReadOnlySpan<T> managed, Span<TUnmanagedElement> buffer);
public void FromManaged (ReadOnlySpan<T> managed, Span<TUnmanagedElement> buffer);
member this.FromManaged : ReadOnlySpan<'T> * Span<'UnmanagedElement (requires 'UnmanagedElement : struct)> -> unit
Public Sub FromManaged (managed As ReadOnlySpan(Of T), buffer As Span(Of TUnmanagedElement))

Parâmetros

managed
ReadOnlySpan<T>

O intervalo a ser realizado.

buffer
Span<TUnmanagedElement>

O buffer que pode ser usado para marshaling.

Comentários

O buffer não deve ser móvel , ou seja, não deve estar no heap gerenciado ou deve ser fixado.

Aplica-se a