ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn.FromManaged Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise le SpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn marshaller.
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))
Paramètres
- managed
- ReadOnlySpan<T>
L’étendue à marshaler.
- buffer
- Span<TUnmanagedElement>
Mémoire tampon qui peut être utilisée pour le marshaling.
Remarques
Le buffer ne doit pas être mobile , autrement dit, il ne doit pas se trouver sur le tas managé ou il doit être épinglé.