yii\i18n\GettextMoFile::readBytes PHP Method

readBytes() protected method

Reads one or several bytes.
protected readBytes ( resource $fileHandle, integer $byteCount = 1 ) : string
$fileHandle resource to read from
$byteCount integer to be read
return string bytes
    protected function readBytes($fileHandle, $byteCount = 1)
    {
        if ($byteCount > 0) {
            return fread($fileHandle, $byteCount);
        } else {
            return null;
        }
    }