phasync
StringBuffer / __construct

Method

StringBuffer::__construct

Creates an empty buffer.

Description#

public StringBuffer::__construct(
    ?int $maxSize = null
)

Parameters#

$maxSize ?int = null
The most bytes write() lets accumulate unread before it waits; null: no limit

Errors / Exceptions#

ExceptionWhen
OutOfBoundsExceptionIf $maxSize is given and below 1