mirror of
https://github.com/Rogiel/php-mpq
synced 2025-12-06 08:23:05 +00:00
Implements end-of-file calls on streams
This commit is contained in:
@@ -77,4 +77,11 @@ class MemoryStream implements Stream {
|
||||
$this->pointer += $position;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function eof() {
|
||||
return strlen($this->data) >= $this->pointer;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user