System.TMarshal.AllocStringAsUnicode
Delphi
class function AllocStringAsUnicode(const Str: string): TPtrWrapper;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas | System | TMarshal |
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.