src/Robtimus/Multipart/Multipart.php
/**
     * Buffers the content of this multipart object.
     * Note that this method should be called before calling read, otherwise the contents that have already read may not be part of the buffered content.
     * If the content is already buffered, this method will simply return the buffered content.
     * @return string the content of this multipart object.
     */
Buffers the content of this multipart object.
Note that this method should be called before calling read, otherwise the contents that have already read may not be part of the buffered content.
If the content is already buffered, this method will simply return the buffered content.
@return string the content of this multipart object.
Buffers the content of this multipart object . Note that this method should be called before calling read otherwise the contents that have already read may not be part of the buffered content . If the content is already buffered this method will simply return the buffered content . @return string the content of this multipart object .
public final function buffer($bufferSize = 8192) {
        if (!$this->finished) {
            throw new \LogicException('can\'t buffer a non-finished multipart object');
        }
        Util::validatePositiveInt($bufferSize, '$bufferSize');
        return $this->doBuffer($bufferSize);
    }
public final function buffer ( $ bufferSize = 8192 ) { if ( ! $ this -> finished ) { throw new \ LogicException ( 'can\'t buffer a non-finished multipart object' ) ; } Util :: validatePositiveInt ( $ bufferSize , '$bufferSize' ) ; return $ this -> doBuffer ( $ bufferSize ) ; }
Buffers the content of this multipart object.
Buffers the content of this multipart object .