# HaruDoc::getStreamSize

(PECL haru:0.0.1)

HaruDoc::getStreamSize — Get the size of the temporary stream

### Description

int HaruDoc::getStreamSize ( void )

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.

### Errors/Exceptions

Throws HaruException on error.

### See Also

- HaruDoc::saveToStream()
- HaruDoc::resetStream()
- HaruDoc::readFromStream()