System.TMarshal.ReadStringAsUtf8UpTo
Delphi
class function ReadStringAsUtf8UpTo(Ptr: TPtrWrapper; MaxLen: Integer): string;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.pas | System | TMarshal |
Description
Reads a string from a block of memory.
ReadStringAsUtf8UpTo reads a string from a block of memory referenced by the Ptr wrapped pointer. This method writes string data to a buffer in the Utf8 encoding.
MaxLen indicates the limit on the number of characters to be read.