X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Finterfaces%2Fio%2Fpointer%2Fio%2Fclass_InputOutputPointer.php;h=0cb98dd847801d3cb036a5701bb0d4192b2fe342;hp=6c2de09c78a1a8e49c6156b3d563e8ceca0036b8;hb=87ecc6be399bf88d83093105c667d3abfd6593de;hpb=0a638eea103f0f2b6c48374cb8d01e68893f5a65 diff --git a/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php b/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php index 6c2de09c..0cb98dd8 100644 --- a/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php +++ b/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php @@ -22,6 +22,35 @@ * along with this program. If not, see . */ interface InputOutputPointer extends InputPointer, OutputPointer { + /** + * Rewinds to the beginning of the file + * + * @return $status Status of this operation + */ + function rewind (); + + /** + * Advances to next "block" of bytes + * + * @return void + * @todo This method will load large but empty files in a whole + */ + function next (); + + /** + * Checks wether the current entry is valid (not at the end of the file). + * This method will return TRUE if an emptied (nulled) entry has been found. + * + * @return $isValid Whether the next entry is valid + */ + function valid (); + + /** + * Gets current seek position ("key"). + * + * @return $key Current key in iteration + */ + function key (); } // [EOF]