You are here

public function ReadableStreamBackupFile::seekBytes in Backup and Migrate 8.4

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

lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php, line 168

Class

ReadableStreamBackupFile
Class ReadableStreamBackupFile.

Namespace

BackupMigrate\Core\File

Code

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