System.SysUtils.TMarshaller.AllocStringAsUnicode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AllocStringAsUnicode(const Str: string): TPtrWrapper;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas 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.

See Also