- PHP 手册
- 函数参考
- 非文本内容的 MIME 输出
- haru
- HaruDoc
HaruDoc::readFromStream
(PECL haru >= 0.0.1)
HaruDoc::readFromStream — Read data from the temporary stream
说明
HaruDoc::readFromStream ( int$bytes
) : string
Read data from the temporary stream.
参数
-
bytes
-
The
bytes
parameter specifies how many bytes to read, though the stream may contain less bytes than requested.
返回值
Returns data from the temporary stream.
错误/异常
发生错误时抛出 HaruException 异常。
参见
- HaruDoc::saveToStream() - Save the document into a temporary stream
- HaruDoc::resetStream() - Rewind the temporary stream
- HaruDoc::getStreamSize() - Get the size of the temporary stream
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/harudoc.readfromstream.php