System.TMarshal.WriteStringAsUnicode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure WriteStringAsUnicode(Ptr: TPtrWrapper; const Value: string; MaxCharsIncNull: Integer); overload;
class procedure WriteStringAsUnicode(Ptr: TPtrWrapper; Ofs: NativeInt; const Value: string; MaxCharsIncNull: Integer); overload;

Properties

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

Description

Writes a string into a block of memory.

WriteStringAsUnicode writes a string into a block of memory referenced by the Ptr wrapped pointer. This method writes string data to a buffer in the Unicode encoding.

MaxCharsIncNull indicates the number of characters of the input encoding to write. Whenever MaxCharsIncNull has the value of -1, the character data will be written entirely.

See Also