* Seeks to given position
*
* @param $seekPosition Seek position in file
- * @return void
+ * @return $status Status of this operation
*/
function seek ($seekPosition);
* @return void
*/
function writeAtPosition ($seedPosition, $data);
+
+ /**
+ * Reads given amount of bytes from file.
+ *
+ * @param $bytes Amount of bytes to read
+ * @return $data Data read from file
+ */
+ function read ($bytes);
+
+ /**
+ * Analyzes entries in index file. This will count all found (and valid)
+ * entries, mark invalid as damaged and count gaps ("fragmentation"). If
+ * only gaps are found, the file is considered as "virgin" (no entries).
+ *
+ * @return void
+ */
+ function analyzeFile ();
}
// [EOF]