System.TMarshal.WriteStringAsAnsi
Delphi
class procedure WriteStringAsAnsi(Ptr: TPtrWrapper; const Value: string; MaxCharsIncNull: Integer); overload;
class procedure WriteStringAsAnsi(Ptr: TPtrWrapper; const Value: string; MaxCharsIncNull: Integer; CodePage: Word); overload;
class procedure WriteStringAsAnsi(Ptr: TPtrWrapper; Ofs: NativeInt; const Value: string; MaxCharsIncNull: Integer); overload;
class procedure WriteStringAsAnsi(Ptr: TPtrWrapper; Ofs: NativeInt; const Value: string; MaxCharsIncNull: Integer; CodePage: Word); overload;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure | public | System.pas | System | TMarshal |
Description
Writes a string into a block of memory.
WriteStringAsAnsi writes a string into a block of memory referenced by the Ptr
wrapped pointer. This method writes string data to a buffer in the ANSI 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.