You are here

public function BackupFileReadableInterface::readBytes in Backup and Migrate 5.0.x

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 src/Core/File/ReadableStreamBackupFile.php
Read a line from the file.

File

src/Core/File/BackupFileReadableInterface.php, line 27

Class

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

Namespace

Drupal\backup_migrate\Core\File

Code

public function readBytes($size = 0);