System.TMarshal.WriteStringAsUnicode

提供: RAD Studio API Documentation
移動先: 案内検索

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;

プロパティ

種類 可視性 ソース ユニット
procedure public System.pas System TMarshal

説明

文字列を、メモリ ブロックへ書き込みます。

WriteStringAsUnicode は、ラップ ポインタ Ptr が参照するメモリ ブロックへ、文字列を書き込みます。 このメソッドは、文字列データをバッファへ、Unicode エンコーディングで書き込みます。

MaxCharsIncNull は、書き込む、入力エンコーディングの文字数を示します。 MaxCharsIncNull が値 -1 の場合、文字データはすべて書き込まれます。

関連項目