ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn Struct

Definizione

Supporta il marshalling da gestito in non gestito in una chiamata dal codice gestito al codice non gestito.

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

Parametri di tipo

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

Proprietà

BufferSize

Ottiene le dimensioni del buffer allocato dal chiamante da allocare.

Metodi

Free()

Libera le risorse.

FromManaged(ReadOnlySpan<T>, Span<TUnmanagedElement>)

Inizializza il SpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn marshaller.

GetManagedValuesSource()

Restituisce un intervallo che punta alla memoria in cui vengono archiviati i valori gestiti della matrice.

GetPinnableReference()

Restituisce un riferimento alla matrice con marshalling.

GetPinnableReference(ReadOnlySpan<T>)

Aggiunge l'intervallo gestito a un puntatore per passare direttamente al codice non gestito.

GetUnmanagedValuesDestination()

Restituisce un intervallo che punta alla memoria in cui devono essere archiviati i valori non gestiti della matrice.

ToUnmanaged()

Restituisce il valore non gestito che rappresenta la matrice.

Si applica a