X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Finterfaces%2Fio%2Fpointer%2Fclass_OutputPointer.php;h=4ac2fe941a70c78b9be3383313fa463816fc6f41;hp=7d8300eebf50f0385207e42e898c2771315e4bc4;hb=5203f9bd014ad46fbc7ee54e7223dcd46e14e3b4;hpb=f18669b3ece63a283957eb0114967d322648094a diff --git a/inc/classes/interfaces/io/pointer/class_OutputPointer.php b/inc/classes/interfaces/io/pointer/class_OutputPointer.php index 7d8300ee..4ac2fe94 100644 --- a/inc/classes/interfaces/io/pointer/class_OutputPointer.php +++ b/inc/classes/interfaces/io/pointer/class_OutputPointer.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -interface OutputPointer extends StreamableOutput { +interface OutputPointer extends StreamableOutput, FilePointer { /** * Write data to a file pointer * @@ -33,6 +33,15 @@ interface OutputPointer extends StreamableOutput { * 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]