You are here

public function ReadableStreamBackupFile::seekBytes in Backup and Migrate 5.0.x

Move the file pointer forward a given number of bytes.

Parameters

int $bytes:

Return value

int The number of bytes moved or -1 if the operation failed.

Overrides BackupFileReadableInterface::seekBytes

File

src/Core/File/ReadableStreamBackupFile.php, line 174

Class

ReadableStreamBackupFile
Uses a readable PHP stream such as a local file.

Namespace

Drupal\backup_migrate\Core\File

Code

public function seekBytes($bytes) {
  if ($this
    ->isOpen()) {
    return fseek($this->handle, $bytes);
  }
  return -1;
}