SpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn 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 managed into unmanaged in a call from managed code to unmanaged code.
public: where TUnmanagedElement : value classvalue class SpanMarshaller<T, TUnmanagedElement>::ManagedToUnmanagedIn
public ref struct SpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn where TUnmanagedElement : struct
type SpanMarshaller<'T, 'UnmanagedElement (requires 'UnmanagedElement : struct)>.ManagedToUnmanagedIn = struct
Public Structure SpanMarshaller(Of T, TUnmanagedElement).ManagedToUnmanagedIn
Type Parameters
- T
- TUnmanagedElement
- Inheritance
Properties
BufferSize |
Gets the size of the caller-allocated buffer to allocate. |
Methods
Free() |
Frees resources. |
FromManaged(Span<T>, Span<TUnmanagedElement>) |
Initializes the SpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn marshaller. |
GetManagedValuesSource() |
Gets a span that points to the memory where the managed values of the array are stored. |
GetPinnableReference() |
Returns a reference to the marshalled array. |
GetPinnableReference(Span<T>) |
Gets a pinnable reference to the managed span. |
GetUnmanagedValuesDestination() |
Returns a span that points to the memory where the unmanaged values of the array should be stored. |
ToUnmanaged() |
Returns the unmanaged value representing the array. |
Applies to
Кері байланыс
https://aka.ms/ContentUserFeedback.
Жақында қолжетімді болады: 2024 жыл бойы біз GitHub Issues жүйесін мазмұнға арналған кері байланыс механизмі ретінде біртіндеп қолданыстан шығарамыз және оны жаңа кері байланыс жүйесімен ауыстырамыз. Қосымша ақпаратты мұнда қараңыз:Жіберу және пікірді көру