]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/io/pointer/class_InputPointer.php
Add stuff for reading header of a file-based stack.
[core.git] / inc / classes / interfaces / io / pointer / class_InputPointer.php
index 1d67cd24599fb3ba1b66e2bad501fdf510adb6eb..0c15cc7b07b7f0620e0c7003bd01bbf77c255263 100644 (file)
@@ -31,6 +31,14 @@ interface InputPointer extends StreamableInput {
         * @throws      InvalidResourceException        If there is being set
         */
        function readFromFile ();
+
+       /**
+        * Reads given amount of bytes from file.
+        *
+        * @param       $bytes  Amount of bytes to read
+        * @return      $data   Data read from file
+        */
+       function read ($bytes);
 }
 
 // [EOF]