yii\i18n\GettextMoFile::readString PHP Method

readString() protected method

Reads a string.
protected readString ( resource $fileHandle, integer $length, integer $offset = null ) : string
$fileHandle resource file handle
$length integer of the string
$offset integer of the string in the file. If null, it reads from the current position.
return string the result
    protected function readString($fileHandle, $length, $offset = null)
    {
        if ($offset !== null) {
            fseek($fileHandle, $offset);
        }
        return $this->readBytes($fileHandle, $length);
    }