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