PointerArrayMarshaller<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.
Represents a marshaller for marshalling an array from managed to unmanaged.
public: where T : value class where TUnmanagedElement : value classvalue class PointerArrayMarshaller<T, TUnmanagedElement>::ManagedToUnmanagedIn
public ref struct PointerArrayMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn where T : struct where TUnmanagedElement : struct
type PointerArrayMarshaller<'T, 'UnmanagedElement (requires 'T : struct and 'UnmanagedElement : struct)>.ManagedToUnmanagedIn = struct
Public Structure PointerArrayMarshaller(Of T, TUnmanagedElement).ManagedToUnmanagedIn
Type Parameters
- T
- TUnmanagedElement
- Inheritance
Properties
BufferSize |
Gets the requested caller-allocated buffer size. |
Methods
Free() |
Frees resources. |
FromManaged(T*[], Span<TUnmanagedElement>) |
Initializes the PointerArrayMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn marshaller. |
GetManagedValuesSource() |
Returns 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(T*[]) |
Gets a pinnable reference to the managed array. |
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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈