]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/iterator/class_SeekableWritableFileIterator.php
Uh, need this method now, but does it work this way?
[core.git] / inc / classes / interfaces / iterator / class_SeekableWritableFileIterator.php
index 1dde2c27235b52e32bc25e46cbefa1959e56d10d..263bba6887bef605933e8a9fbee5ec1bd5cd59cd 100644 (file)
@@ -46,6 +46,23 @@ interface SeekableWritableFileIterator extends SeekableIterator {
         * @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]