/lisp/php/php-manual-html/streamwrapper.stream-read.html
https://github.com/cue-taro/emacs-setting-files · HTML · 120 lines · 94 code · 26 blank · 0 comment · 0 complexity · d28d8b37c2e964f1b61abb7368fbf24f MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <title>ストリームから読み込む</title>
- </head>
- <body><div class="manualnavbar" style="text-align: center;">
- <div class="prev" style="text-align: left; float: left;"><a href="streamwrapper.stream-open.html">streamWrapper::stream_open</a></div>
- <div class="next" style="text-align: right; float: right;"><a href="streamwrapper.stream-seek.html">streamWrapper::stream_seek</a></div>
- <div class="up"><a href="class.streamwrapper.html">streamWrapper</a></div>
- <div class="home"><a href="index.html">PHP Manual</a></div>
- </div><hr /><div id="streamwrapper.stream-read" class="refentry">
- <div class="refnamediv">
- <h1 class="refname">streamWrapper::stream_read</h1>
- <p class="verinfo">(PHP 4 >= 4.3.2, PHP 5)</p><p class="refpurpose"><span class="refname">streamWrapper::stream_read</span> — <span class="dc-title">ストリームから読み込む</span></p>
- </div>
- <div class="refsect1 description" id="refsect1-streamwrapper.stream-read-description">
- <h3 class="title">説明</h3>
- <div class="methodsynopsis dc-description">
- <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><b>streamWrapper::stream_read</b></span>
- ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$count</tt></span>
- )</div>
- <p class="para rdfs-comment">
- このメソッドは、<span class="function"><a href="function.fread.html" class="function">fread()</a></span>
- および <span class="function"><a href="function.fgets.html" class="function">fgets()</a></span> に対応してコールされます。
- </p>
- <blockquote class="note"><p><b class="note">注意</b>:
- <p class="para">
- ストリームの読み込み/書き込み位置
- (読み込みに成功したバイト数ぶん) の更新を忘れないようにしましょう。
- </p>
- </p></blockquote>
- </div>
- <div class="refsect1 parameters" id="refsect1-streamwrapper.stream-read-parameters">
- <h3 class="title">パラメータ</h3>
- <p class="para">
- <dl>
- <dt>
- <span class="term"><i><tt class="parameter">count</tt></i></span>
- <dd>
- <p class="para">
- 現在位置から何バイトぶんのデータを返すか。
- </p>
- </dd>
- </dt>
- </dl>
- </p>
- </div>
- <div class="refsect1 returnvalues" id="refsect1-streamwrapper.stream-read-returnvalues">
- <h3 class="title">返り値</h3>
- <p class="para">
- <i><tt class="parameter">count</tt></i> バイト未満のデータしか存在しない場合は、
- 返せる限りのデータを返します。もうデータがない場合は、
- <b><tt>FALSE</tt></b> あるいは空文字列を返します。
- </p>
- </div>
- <div class="refsect1 errors" id="refsect1-streamwrapper.stream-read-errors">
- <h3 class="title">エラー / 例外</h3>
- <p class="para">このメソッドのコールに
- (未実装などの理由で) 失敗した場合、
- <b><tt>E_WARNING</tt></b> を発行します。</p>
- <blockquote class="note"><p><b class="note">注意</b>:
- <p class="para">
- 返り値が <i><tt class="parameter">count</tt></i> より長い場合は
- <b><tt>E_WARNING</tt></b> エラーが発生し、余分なデータは失われます。
- </p>
- </p></blockquote>
- </div>
-
- <div class="refsect1 notes" id="refsect1-streamwrapper.stream-read-notes">
- <h3 class="title">注意</h3>
- <blockquote class="note"><p><b class="note">注意</b>:
- <p class="para">
- <span class="methodname"><a href="streamwrapper.stream-eof.html" class="methodname">streamWrapper::stream_eof()</a></span> は、
- <span class="methodname"><b>streamWrapper::stream_read()</b></span> がコールされた後に直接コールされ、
- <acronym title="End Of File">EOF</acronym> に達したかどうかを調べます。実装されていない場合は
- <acronym title="End Of File">EOF</acronym> だとみなされます。
- </p>
- </p></blockquote>
- </div>
-
- <div class="refsect1 seealso" id="refsect1-streamwrapper.stream-read-seealso">
- <h3 class="title">参考</h3>
- <p class="para">
- <ul class="simplelist">
- <li class="member"><span class="function"><a href="function.fread.html" class="function" rel="rdfs-seeAlso">fread()</a> - バイナリセーフなファイルの読み込み</span></li>
- <li class="member"><span class="function"><a href="function.fgets.html" class="function" rel="rdfs-seeAlso">fgets()</a> - ファイルポインタから 1 行取得する</span></li>
- </ul>
- </p>
- </div>
- </div><hr /><div class="manualnavbar" style="text-align: center;">
- <div class="prev" style="text-align: left; float: left;"><a href="streamwrapper.stream-open.html">streamWrapper::stream_open</a></div>
- <div class="next" style="text-align: right; float: right;"><a href="streamwrapper.stream-seek.html">streamWrapper::stream_seek</a></div>
- <div class="up"><a href="class.streamwrapper.html">streamWrapper</a></div>
- <div class="home"><a href="index.html">PHP Manual</a></div>
- </div></body></html>