System.TMarshal.ReadStringAsAnsi

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ReadStringAsAnsi(Ptr: TPtrWrapper; Len: Integer = -1): string; overload;
class function ReadStringAsAnsi(CodePage: Word; Ptr: TPtrWrapper; Len: Integer = -1): string; overload;

Properties

Type Visibility Source Unit Parent
function public System.pas System TMarshal

Description

Reads a string from a block of memory.

ReadStringAsAnsi 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.

Len indicates the number of characters of the input encoding to read. Whenever Len has the value of -1 or is omitted, the character data will be read until the next null terminator.

See Also