共用方式為


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不可移動 - 也就是說,它不應該位於Managed堆積上,或應該釘選它。

適用於