Читати англійською Редагувати

Поділитися через


ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut Struct

Definition

Supports marshalling from unmanaged to managed in a call from managed code to unmanaged code. For example, return values and out parameters in P/Invoke methods.

C#
public struct ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut where TUnmanagedElement : struct

Type Parameters

T
TUnmanagedElement
Inheritance
ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut

Methods

Free()

Frees resources.

FromUnmanaged(TUnmanagedElement*)

Initializes the ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut marshaller.

GetManagedValuesDestination(Int32)

Returns a span that points to the memory where the managed elements of the array should be stored.

GetUnmanagedValuesSource(Int32)

Returns a span that points to the memory where the unmanaged elements of the array are stored.

ToManaged()

Returns the managed value representing the native array.

Applies to

Продукт Версії
.NET 9, 10