System.TMarshal.ReadStringAsUnicodeUpTo
Delphi
class function ReadStringAsUnicodeUpTo(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.
ReadStringAsUnicodeUpTo reads a string from a block of memory referenced by the Ptr wrapped pointer. This method writes string data to a buffer in the Unicode encoding.
MaxLen indicates the limit on the number of characters to be read.