System.TMarshal.AllocStringAsUnicode
Delphi
class function AllocStringAsUnicode(const Str: string): TPtrWrapper;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.pas | System | TMarshal |
説明
文字列をバッファにコピーします。
AllocStringAsUnicode メソッドは、Str
の null 終端子を含んだ文字列データのコピーを格納したバッファを参照する、ラップ ポインタを返します。バッファは、Flush が呼び出されるか、レコードがスコープの外にでた際に、解放されます。