ReadOnlySpanMarshaller<T,TUnmanagedElement>.ManagedToUnmanagedIn.FromManaged 方法

定义

public:
 void FromManaged(ReadOnlySpan<T> managed, Span<TUnmanagedElement> buffer);
public void FromManaged (ReadOnlySpan<T> managed, Span<TUnmanagedElement> buffer);
member this.FromManaged : ReadOnlySpan<'T> * Span<'UnmanagedElement (requires 'UnmanagedElement : struct)> -> unit
Public Sub FromManaged (managed As ReadOnlySpan(Of T), buffer As Span(Of TUnmanagedElement))

参数

managed
ReadOnlySpan<T>

要封送的跨度。

buffer
Span<TUnmanagedElement>

可用于封送的缓冲区。

注解

buffer不得移动 - 也就是说,它不应位于托管堆上,或应固定。

适用于