1
0
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:
2016-01-18 11:12:49 -02:00
parent aeb01ce902
commit 2669ee5738
7 changed files with 44 additions and 1 deletions

View File

@@ -77,4 +77,11 @@ class MemoryStream implements Stream {
$this->pointer += $position;
}
/**
* {@inheritdoc}
*/
public function eof() {
return strlen($this->data) >= $this->pointer;
}
}