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