/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

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <title>ストリームから読み込む</title>
  6. </head>
  7. <body><div class="manualnavbar" style="text-align: center;">
  8. <div class="prev" style="text-align: left; float: left;"><a href="streamwrapper.stream-open.html">streamWrapper::stream_open</a></div>
  9. <div class="next" style="text-align: right; float: right;"><a href="streamwrapper.stream-seek.html">streamWrapper::stream_seek</a></div>
  10. <div class="up"><a href="class.streamwrapper.html">streamWrapper</a></div>
  11. <div class="home"><a href="index.html">PHP Manual</a></div>
  12. </div><hr /><div id="streamwrapper.stream-read" class="refentry">
  13. <div class="refnamediv">
  14. <h1 class="refname">streamWrapper::stream_read</h1>
  15. <p class="verinfo">(PHP 4 &gt;= 4.3.2, PHP 5)</p><p class="refpurpose"><span class="refname">streamWrapper::stream_read</span> &mdash; <span class="dc-title">ストリームから読み込む</span></p>
  16. </div>
  17. <div class="refsect1 description" id="refsect1-streamwrapper.stream-read-description">
  18. <h3 class="title">説明</h3>
  19. <div class="methodsynopsis dc-description">
  20. <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><b>streamWrapper::stream_read</b></span>
  21. ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$count</tt></span>
  22. )</div>
  23. <p class="para rdfs-comment">
  24. このメソッドは<span class="function"><a href="function.fread.html" class="function">fread()</a></span>
  25. および <span class="function"><a href="function.fgets.html" class="function">fgets()</a></span> に対応してコールされます
  26. </p>
  27. <blockquote class="note"><p><b class="note">注意</b>:
  28. <p class="para">
  29. ストリームの読み込み/書き込み位置
  30. (読み込みに成功したバイト数ぶん) の更新を忘れないようにしましょう
  31. </p>
  32. </p></blockquote>
  33. </div>
  34. <div class="refsect1 parameters" id="refsect1-streamwrapper.stream-read-parameters">
  35. <h3 class="title">パラメータ</h3>
  36. <p class="para">
  37. <dl>
  38. <dt>
  39. <span class="term"><i><tt class="parameter">count</tt></i></span>
  40. <dd>
  41. <p class="para">
  42. 現在位置から何バイトぶんのデータを返すか
  43. </p>
  44. </dd>
  45. </dt>
  46. </dl>
  47. </p>
  48. </div>
  49. <div class="refsect1 returnvalues" id="refsect1-streamwrapper.stream-read-returnvalues">
  50. <h3 class="title">返り値</h3>
  51. <p class="para">
  52. <i><tt class="parameter">count</tt></i> バイト未満のデータしか存在しない場合は
  53. 返せる限りのデータを返しますもうデータがない場合は
  54. <b><tt>FALSE</tt></b> あるいは空文字列を返します
  55. </p>
  56. </div>
  57. <div class="refsect1 errors" id="refsect1-streamwrapper.stream-read-errors">
  58. <h3 class="title">エラー / 例外</h3>
  59. <p class="para">このメソッドのコールに
  60. (未実装などの理由で) 失敗した場合
  61. <b><tt>E_WARNING</tt></b> を発行します</p>
  62. <blockquote class="note"><p><b class="note">注意</b>:
  63. <p class="para">
  64. 返り値が <i><tt class="parameter">count</tt></i> より長い場合は
  65. <b><tt>E_WARNING</tt></b> エラーが発生し余分なデータは失われます
  66. </p>
  67. </p></blockquote>
  68. </div>
  69. <div class="refsect1 notes" id="refsect1-streamwrapper.stream-read-notes">
  70. <h3 class="title">注意</h3>
  71. <blockquote class="note"><p><b class="note">注意</b>:
  72. <p class="para">
  73. <span class="methodname"><a href="streamwrapper.stream-eof.html" class="methodname">streamWrapper::stream_eof()</a></span>
  74. <span class="methodname"><b>streamWrapper::stream_read()</b></span> がコールされた後に直接コールされ
  75. <acronym title="End Of File">EOF</acronym> に達したかどうかを調べます実装されていない場合は
  76. <acronym title="End Of File">EOF</acronym> だとみなされます
  77. </p>
  78. </p></blockquote>
  79. </div>
  80. <div class="refsect1 seealso" id="refsect1-streamwrapper.stream-read-seealso">
  81. <h3 class="title">参考</h3>
  82. <p class="para">
  83. <ul class="simplelist">
  84. <li class="member"><span class="function"><a href="function.fread.html" class="function" rel="rdfs-seeAlso">fread()</a> - バイナリセーフなファイルの読み込み</span></li>
  85. <li class="member"><span class="function"><a href="function.fgets.html" class="function" rel="rdfs-seeAlso">fgets()</a> - ファイルポインタから 1 行取得する</span></li>
  86. </ul>
  87. </p>
  88. </div>
  89. </div><hr /><div class="manualnavbar" style="text-align: center;">
  90. <div class="prev" style="text-align: left; float: left;"><a href="streamwrapper.stream-open.html">streamWrapper::stream_open</a></div>
  91. <div class="next" style="text-align: right; float: right;"><a href="streamwrapper.stream-seek.html">streamWrapper::stream_seek</a></div>
  92. <div class="up"><a href="class.streamwrapper.html">streamWrapper</a></div>
  93. <div class="home"><a href="index.html">PHP Manual</a></div>
  94. </div></body></html>