System.TMarshal.ReadStringAsUnicodeUpTo

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also