code/libraries/joomlatools/library/filesystem/stream/abstract.php
public function setBuffer($mode, $size)
    {
        if($resource = $this->getResource()) {
            return stream_set_write_buffer($resource, $size);
        }

        return false;
    }
public function setBuffer($mode, $size)
    {
        if($resource = $this->getResource()) {
            return stream_set_write_buffer($resource, $size);
        }

        return false;
    }
public function setBuffer ( $ mode , $ size ) { if ( $ resource = $ this -> getResource ( ) ) { return stream_set_write_buffer ( $ resource , $ size ) ; } return false ; }
Sets write file buffering on the given stream

@param int $mode STREAM_BUFFER_NONE or STREAM_BUFFER_FULL
@param int $size The number of bytes to buffer. If buffer is 0 then write operations are unbuffered. This
ensures that all writes with fwrite() are completed before other processes are allowed to
write to the stream
@return int|false Returns 0 on success, or FALSE on failure
Sets write file buffering on the given stream