System.SysUtils.TMarshaller.AsUtf8
Delphi
function AsUtf8(const S: string): TPtrWrapper; overload; inline;
function AsUtf8(S: PWideChar): TPtrWrapper; overload; inline;
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 string.
The AsUtf8 group of overloaded methods transforms the string to a multi-byte character encoding before storing it into the buffer.