HaruDoc::readFromStream()
(PECL haru >= 0.0.1)
Read data from the temporary stream
说明
HaruDoc::readFromStream(int $bytes): string
Read data from the temporary stream.
参数
- $bytes
The$bytesparameter 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