private function buffer($curl = null, $line = null)
    {
        static $buffer;

        if ($curl) {
            $buffer .= $line;

            return strlen($line);
        } else {
            $return = $buffer;
            $buffer = '';

            return $return;
        }
    }