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