共用方式為


Utf8StringMarshaller.ManagedToUnmanagedIn.FromManaged 方法

定義

使用 Managed 字串和要求的緩衝區,初始化封送器。

public:
 void FromManaged(System::String ^ managed, Span<System::Byte> buffer);
public void FromManaged (string? managed, Span<byte> buffer);
member this.FromManaged : string * Span<byte> -> unit
Public Sub FromManaged (managed As String, buffer As Span(Of Byte))

參數

managed
String

用來初始化封送器的Managed字串。

buffer
Span<Byte>

大小至少 BufferSize為的要求緩衝區。

適用於