System.SysUtils.TMarshaller.OutString
Delphi
function OutString(const S: string): TPtrWrapper;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | 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.