« COMPersistHelper::LoadFromFile
COMPersistHelper::SaveToFile »

COMPersistHelper::LoadFromStream

(PHP 5, PHP 7, PHP 8)

COMPersistHelper::LoadFromStream — ストリームからオブジェクトを読み込む

説明

public function COMPersistHelper::LoadFromStream(resource $stream): bool

以前オブジェクトを保存したストリームの内容でオブジェクトを初期化します。

パラメータ

stream

オブジェクトを読み込むストリームresource

戻り値

成功した場合に true を、失敗した場合に false を返します。

エラー / 例外

関連付けられたオブジェクトが COM のインターフェイス IPersistStream を実装していないか、 IPersistStream::Load() の呼び出しに失敗した場合、 com_exception がスローされます。

関連キーワード:
COMPersistHelper   ストリーム   LoadFromStream   resource   stream   IPersistStream   LoadFromFile   SaveToFile   初期化   成功   関連   インターフェイス   実装   Load   exception
関連する関数・ページ:
compersisthelper.savetostream   class.compersisthelper   compersisthelper.getmaxstreamsize   compersisthelper.construct   compersisthelper.loadfromfile   compersisthelper.savetofile