Removed asserts as they seem to be to hard and returned status code instead.
[core.git] / inc / classes / interfaces / iterator / class_SeekableWritableFileIterator.php
index 48dd8db..1dde2c2 100644 (file)
@@ -27,9 +27,25 @@ interface SeekableWritableFileIterator extends SeekableIterator {
         * Seeks to given position
         *
         * @param       $seekPosition   Seek position in file
+        * @return      $status                 Status of this operation
+        */
+       function seek ($seekPosition);
+
+       /**
+        * Size of file stack
+        *
+        * @return      $size   Size (in bytes) of file
+        */
+       function size ();
+
+       /**
+        * Writes at given position by seeking to it.
+        *
+        * @param       $seekPosition   Seek position in file
+        * @param       $data                   Data to be written
         * @return      void
         */
-       function seek ($seedPosition);
+       function writeAtPosition ($seedPosition, $data);
 }
 
 // [EOF]