Edit

Share via


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.

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

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