You are here

public function BackupFileReadableInterface::readBytes in Backup and Migrate 8.4

Read a given number of bytes from the file.

Parameters

int $size The number of bites to read:

Return value

string The data read from the file or NULL if the file can't be read or is at the end of the file.

1 method overrides BackupFileReadableInterface::readBytes()
ReadableStreamBackupFile::readBytes in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Read a line from the file.

File

lib/backup_migrate_core/src/File/BackupFileReadableInterface.php, line 24

Class

BackupFileReadableInterface
Provides a service to provision temp files in the correct place for the environment.

Namespace

BackupMigrate\Core\File

Code

public function readBytes($size = 0);