ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut Struct

Definizione

Supporta il marshalling da non gestito a gestito in una chiamata dal codice gestito al codice non gestito. Ad esempio, restituisce valori e parametri out nei metodi P/Invoke.

public:  where TUnmanagedElement : value classvalue class ReadOnlySpanMarshaller<T, TUnmanagedElement>::ManagedToUnmanagedOut
public struct ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut where TUnmanagedElement : struct
type ReadOnlySpanMarshaller<'T, 'UnmanagedElement (requires 'UnmanagedElement : struct)>.ManagedToUnmanagedOut = struct
Public Structure ReadOnlySpanMarshaller(Of T, TUnmanagedElement).ManagedToUnmanagedOut

Parametri di tipo

T
TUnmanagedElement
Ereditarietà
ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut

Metodi

Free()

Libera le risorse.

FromUnmanaged(TUnmanagedElement*)

Inizializza il marshaller ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut.

GetManagedValuesDestination(Int32)

Restituisce un intervallo che punta alla memoria in cui devono essere archiviati gli elementi gestiti della matrice.

GetUnmanagedValuesSource(Int32)

Restituisce un intervallo che punta alla memoria in cui vengono archiviati gli elementi non gestiti della matrice.

ToManaged()

Restituisce il valore gestito che rappresenta la matrice nativa.

Si applica a