System.SysUtils.TMarshaller.OutString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function OutString(const S: string): TPtrWrapper;

C++

System::TPtrWrapper __fastcall OutString(const System::UnicodeString S);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TMarshaller

Description

Returns a wrapped pointer to the character data of a copied string.

The OutString method returns a wrapped pointer to the character data of a copy of the string S, along with a null terminator. If the character data is modified through the returned wrapped pointer, the modifications do not affect the original string. Similarly, if the original string S is changed, the character data in the returned buffer is not affected. The copy is discarded when the marshaller is flushed or goes out of scope.

See Also