System.SysUtils.TMarshaller.AllocStringAsUnicode

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function AllocStringAsUnicode(const Str: string): TPtrWrapper;

C++

System::TPtrWrapper __fastcall AllocStringAsUnicode(const System::UnicodeString Str);

プロパティ

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

説明

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

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

関連項目