From RAD Studio API Documentation
Jump to: navigation, search


class function ReadStringAsAnsiUpTo(CodePage: Word; Ptr: TPtrWrapper; MaxLen: Integer): string;


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


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.

See Also