System.TMarshal.AllocStringAsUnicode

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

Delphi

class function AllocStringAsUnicode(const Str: string): TPtrWrapper;

プロパティ

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

説明

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

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

関連項目