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