ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedOut Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |