aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-28 14:44:17 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-28 14:44:17 +0200
commitffe008b9446bc63b47aa289d30d8835667882d20 (patch)
tree67400d091573d5749af384388a62a5cf33982c70
parent48963eaa1a221825eac9bb6fcf608de5b6427f82 (diff)
downloadStream-ffe008b9446bc63b47aa289d30d8835667882d20.zip
Stream-ffe008b9446bc63b47aa289d30d8835667882d20.tar.gz
Stream-ffe008b9446bc63b47aa289d30d8835667882d20.tar.bz2
readAll() has an $offset argument.
By default, readAll() will read from the first position of the stream (if possible). Else, we can choose with the $offset argument.
-rw-r--r--IStream/In.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/IStream/In.php b/IStream/In.php
index ea10bdf..8d8e8de 100644
--- a/IStream/In.php
+++ b/IStream/In.php
@@ -132,9 +132,10 @@ interface In {
* Read all, i.e. read as much as possible.
*
* @access public
+ * @param int $offset Offset.
* @return string
*/
- public function readAll ( );
+ public function readAll ( $offset = 0 );
/**
* Parse input from a stream according to a format.