writeAtPosition() also belongs in OutputPointer classes.
[core.git] / inc / classes / interfaces / io / pointer / class_OutputPointer.php
index 06c5835fa836f49279d3d56e715b8f3adc0e16a6..472bba55cbef715f77f23e1863a57cf70dc7d6bb 100644 (file)
@@ -33,6 +33,15 @@ interface OutputPointer extends StreamableOutput, Pointer {
         *                                                                                      an invalid file resource
         */
        function writeToFile ($dataStream);
+
+       /**
+        * Writes at given position by seeking to it.
+        *
+        * @param       $seekPosition   Seek position in file
+        * @param       $data                   Data to be written
+        * @return      mixed                   Number of writes bytes or FALSE on error
+        */
+       function writeAtPosition ($seedPosition, $data);
 }
 
 // [EOF]