System.TMarshal.ReadStringAsUnicode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ReadStringAsUnicode(Ptr: TPtrWrapper; Len: Integer = -1): string;

Properties

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

Description

Reads a string from a block of memory.

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

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