ArrayMarshaller<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.
Marshaller for marshalling a array from managed to unmanaged.
public: where TUnmanagedElement : value classvalue class ArrayMarshaller<T, TUnmanagedElement>::ManagedToUnmanagedIn
public ref struct ArrayMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn where TUnmanagedElement : struct
type ArrayMarshaller<'T, 'UnmanagedElement (requires 'UnmanagedElement : struct)>.ManagedToUnmanagedIn = struct
Public Structure ArrayMarshaller(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 ArrayMarshaller<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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기