API:System.Win.Registry.TRegistryIniFile.ReadBinaryStream
Delphi
function ReadBinaryStream(const Section, Name: string; Value: TStream): Integer; override;
C++
virtual int __fastcall ReadBinaryStream(const System::UnicodeString Section, const System::UnicodeString Name, System::Classes::TStream* Value);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegistryIniFile |
説明
INI ファイルからバイナリ値を取り出します。
System.Win.Registry.TRegistryIniFile.ReadBinaryStream は System.IniFiles.TCustomIniFile.ReadBinaryStream を継承しています。以下の内容はすべて System.IniFiles.TCustomIniFile.ReadBinaryStream を参照しています。
INI ファイルからバイナリ値を取り出します。
ReadBinaryStream メソッドを呼び出すと,指定したストリームにバイナリ値を読み出すことができます。バイナリ値を読み出すと,ReadBinaryStream メソッドは,INI ファイルから現在のストリームの位置に一連の 16 進数文字を変換し,ストリームに書き込まれたバイト数を返します。ストリームがメモリストリーム(TMemoryStream またはその下位クラスのいずれか)の場合,ReadBinaryStream を読み出す前と同じバイト(新しいバイナリ値の直前)に配置されます。
Section は,ターゲットキーを含んでいるセクションです。
Name は,バイナリ値を格納しているキーです。
Value は,バイナリ値が書き込まれるストリームです。
メモ: Windows の .ini ファイルで使用する場合は,ReadBinaryStream は 1023 文字に制限されます。