System.SysUtils.TMarshaller.AllocStringAsUnicode

提供:RAD Studio API Documentation

Delphi

function AllocStringAsUnicode(const Str: string): TPtrWrapper;

プロパティ

種類 可視性 ソース ユニット
function public System.SysUtils.pas System.SysUtils TMarshaller

説明

文字列をバッファにコピーします。

AllocStringAsUnicode メソッドは、Strnull 終端子を含んだ文字列データのコピーを格納したバッファを参照する、ラップ ポインタを返します。 バッファは、Flush が呼び出されるか、レコードがスコープの外に出ると、解放されます。

関連項目