Horde_Vfs_Base::readByteRange PHP Метод

readByteRange() публичный Метод

Retrieves a part of a file from the VFS. Particularly useful when reading large files which would exceed the PHP memory limits if they were stored in a string.
public readByteRange ( string $path, string $name, integer &$offset, integer $length, integer &$remaining ) : string
$path string The pathname to the file.
$name string The filename to retrieve.
$offset integer The offset of the part. (The new offset will be stored in here).
$length integer The length of the part. If the length = -1, the whole part after the offset is retrieved. If more bytes are given as exists after the given offset. Only the available bytes are read.
$remaining integer The bytes that are left, after the part that is retrieved.
Результат string The file data.
    public function readByteRange($path, $name, &$offset, $length, &$remaining)
    {
        throw new Horde_Vfs_Exception('Not supported.');
    }