return $this->getPointerInstance()->rewind();
}
+ /**
+ * Checks wether the current entry is valid (not at the end of the file).
+ * This method will return TRUE if an emptied (nulled) entry has been found.
+ *
+ * @return void
+ */
+ public function valid () {
+ // Call pointer instance
+ return $this->getPointerInstance()->valid();
+ }
+
/**
* Seeks to given position
*
}
/**
- * Checks wether the current entry is valid (not at the end of the file).
- * This method will return TRUE if an emptied (nulled) entry has been found.
+ * Reads given amount of bytes from file.
*
- * @return void
+ * @param $bytes Amount of bytes to read
+ * @return $data Data read from file
*/
- public function valid () {
- $this->partialStub('Please implement this method.');
+ public function read ($bytes) {
+ // Call pointer instance
+ return $this->getPointerInstance()->read($bytes);
}
}