System.SysUtils.TMarshaller.AllocStringAsUnicode
Delphi
function AllocStringAsUnicode(const Str: string): TPtrWrapper;
C++
System::TPtrWrapper __fastcall AllocStringAsUnicode(const System::UnicodeString Str);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TMarshaller |
Description
Copies a string into a buffer.
The AllocStringAsUnicode method returns a wrapped pointer referencing a buffer containing a copy of Str's string data, including the null terminator. The buffer will be freed when Flush is called or the record goes out of scope.