6 Stream::resetStreamWithLength -
9 <meta property=
"og:title" content=
"ion\Reader\Stream::resetStreamWithLength">
10 <meta name=
"viewport" content=
"width=1200, initial-scale=0.5">
11 <base href=
"/ext-ion/v0.1/">
12 <meta http-equiv=
"Content-Location" content=
"/ext-ion/v0.1/ion/Reader/Stream/resetStreamWithLength">
13 <link rel=
"stylesheet" href=
"index.css">
15 <link rel=
"shortcut icon" href=
"/ext-ion/v0.1/favicon.ico">
23 <a href=
"https://github.com/awesomized/ext-ion/edit/master/ion.stub.php">Edit
</a>
28 <li>↰ <a href=
"./">Home
</a>
33 ↑ <a href=
"./ion">
39 ↑ <a href=
"./ion/Reader">
45 ↑ <a href=
"./ion/Reader/Stream">
51 ↻ <strong><a href=
"./ion/Reader/Stream/resetStreamWithLength">Stream::resetStreamWithLength
</a></strong>
57 <li>↲ <a href=
"./ion/Reader/Stream/Reader">Reader
</a></li>
59 <li>↲ <a href=
"./ion/Reader/Stream/getStream">Stream::getStream
</a></li>
61 <li>↲ <a href=
"./ion/Reader/Stream/resetStream">Stream::resetStream
</a></li>
75 <meta charset=
"utf-8"><h1>
76 <a class=
"permalink" href=
"ion/Reader/Stream/resetStreamWithLength#">#
</a><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Reader/Stream/resetStreamWithLength">ion\Reader\Stream::resetStreamWithLength
</a>(
<code><a href=
"https://php.net/manual/en/language.types.resource">resource
</a></code> <span class=
"var">$stream
</span>,
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var">$length
</span>)
</h1><p>Reset the stream read from, limiting length to read.
</p><h2 id=
"Params:">Params:
<a class=
"permalink" href=
"ion/Reader/Stream/resetStreamWithLength#Params:">#
</a>
79 <code><a href=
"https://php.net/manual/en/language.types.resource">resource
</a></code> <span class=
"var" id=
"$stream">$stream
<a class=
"permalink" href=
"ion/Reader/Stream/resetStreamWithLength#%24stream">#
</a></span><br>
80 The stream to read from.
</li>
82 <code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var" id=
"$length">$length
<a class=
"permalink" href=
"ion/Reader/Stream/resetStreamWithLength#%24length">#
</a></span><br>
83 The maximum length to read from
<span class=
"var">$stream
</span>.
</li>
85 <div class=
"comments">
86 <style>.giscus-frame {min-height:
16em;}
</style>
88 function giscus_load(button) {
89 let script = document.createElement(
"script");
90 script.setAttribute(
"data-repo", 'awesomized/ext-ion');
91 script.setAttribute(
"data-category", 'Comments on Docs');
92 script.setAttribute(
"data-repo-id", 'R_kgDOGfXEXw');
93 script.setAttribute(
"data-category-id", 'DIC_kwDOGfXEX84CBHuf');
94 script.setAttribute(
"data-mapping", 'og:title');
95 script.setAttribute(
"data-input-position", 'bottom');
96 script.setAttribute(
"data-reactions-enabled", false);
97 script.setAttribute(
"data-theme", 'light');
98 script.setAttribute(
"data-lang", 'en');
100 script.src =
"//giscus.app/client.js";
101 button.parentNode.replaceChild(script, button);
104 <button class=
"activator" onclick=
"giscus_load(this)">Show Comments from Github Discussions
</button>
111 <li><a href=
"https://github.com/m6w6/mdref">mdref-v3.0
113 <li><a href=
"LICENSE">© 2013-
2022 All rights reserved.
</a></li>
120 <script src=
"index.js" defer
></script>