• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • HaruDoc::getStreamSize()

    (PECL haru >= 0.0.1)

    Get the size of the temporary stream

    说明

    HaruDoc::getStreamSize(void): int

    Get the size of the temporary stream.

    参数

    此函数没有参数。

    返回值

    Returns the size of the data in the temporary stream of the document. The size is zero if the document was not saved to the temporary stream.

    错误/异常

    发生错误时抛出HaruException异常。

    参见

    • HaruDoc::saveToStream() Save the document into a temporary stream
    • HaruDoc::resetStream() Rewind the temporary stream
    • HaruDoc::readFromStream() Read data from the temporary stream