You are here

public function MimeStreamWrapper::stream_read in UIkit Components 8.3

Parameters

int $count:

Return value

mixed|string

File

src/MimeStreamWrapper.php, line 164

Class

MimeStreamWrapper
Provides a stream wrapper to retrieve mime type information from any source.

Namespace

Drupal\uikit_components

Code

public function stream_read($count) {
  if ($this->eof || !$count) {
    return '';
  }
  if (($s = call_user_func($this->callBackFunction, $count)) == '') {
    $this->eof = TRUE;
  }
  return $s;
}