php8.5
Home/ Manual/ com / compersisthelper/ COMPersistHelper::GetMaxStreamSize

COMPersistHelper::GetMaxStreamSize

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Get maximum stream size

Description

COMPersistHelper::GetMaxStreamSize(): int

Retrieves the size of the stream (in bytes) needed to save the object.

Parameters Parameters

Return Values

Returns the size of the stream (in bytes) needed to save the object.

Errors/Exceptions

A com_exception is thrown if the associated object does neither implement the COM interface IPersistStream nor IPersistStreamInit, or when calling the IPersistStream::GetSizeMax method failed.

Source: reference/com/compersisthelper/getmaxstreamsize.xml · from the official PHP manual (php/doc-en)