function stream_read($count = null) { if (is_null($count)) { return $this->fs->raw(); } else { return $this->fs->raw(0, $count); } }
function fread(\Nov\CouchDb\Fs\Resource $f, $lenght = null) { if (is_null($lenght)) { return $f->raw(); } else { return $f->raw(0, $lenght); } }