fix #6: compatibility with 8.2
[awesomized/ext-ion] / docs / v0.1 / ion / Reader / Stream / resetStreamWithLength.html
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 Stream::resetStreamWithLength -
7 mdref
8 </title>
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">
14
15 <link rel="shortcut icon" href="/ext-ion/v0.1/favicon.ico">
16 </head>
17 <body>
18 <div class="page">
19
20 <div class="sidebar">
21
22 <div class="edit">
23 <a href="https://github.com/awesomized/ext-ion/edit/master/ion.stub.php">Edit</a>
24 </div>
25
26
27 <ul>
28 <li>&lsh; <a href="./">Home</a>
29
30 <ul>
31 <li>
32
33 &uarr; <a href="./ion">
34 ion
35 </a>
36 <ul>
37 <li>
38
39 &uarr; <a href="./ion/Reader">
40 Reader
41 </a>
42 <ul>
43 <li>
44
45 &uarr; <a href="./ion/Reader/Stream">
46 Stream
47 </a>
48 <ul>
49 <li>
50
51 &circlearrowright; <strong><a href="./ion/Reader/Stream/resetStreamWithLength">Stream::resetStreamWithLength</a></strong>
52
53
54
55 </ul>
56
57 <li>&ldsh; <a href="./ion/Reader/Stream/Reader">Reader</a></li>
58
59 <li>&ldsh; <a href="./ion/Reader/Stream/getStream">Stream::getStream</a></li>
60
61 <li>&ldsh; <a href="./ion/Reader/Stream/resetStream">Stream::resetStream</a></li>
62
63 </ul>
64
65 </li>
66
67 </ul>
68
69 </li>
70 </ul>
71
72 </li>
73 </ul>
74 </div>
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>
77 </h2><ul>
78 <li>
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>
81 <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>
84 </ul>
85 <div class="comments">
86 <style>.giscus-frame {min-height: 16em;}</style>
87 <script>
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');
99
100 script.src = "//giscus.app/client.js";
101 button.parentNode.replaceChild(script, button);
102 }
103 </script>
104 <button class="activator" onclick="giscus_load(this)">Show Comments from Github Discussions</button>
105
106 </div>
107
108 <footer>
109
110 <ul>
111 <li><a href="https://github.com/m6w6/mdref">mdref-v3.0
112 </a></li>
113 <li><a href="LICENSE">&copy; 2013-2022 All rights reserved.</a></li>
114 <li>
115 </li>
116 </ul>
117
118 </footer>
119
120 <script src="index.js" defer></script>
121
122 </div>
123 </body>
124 </html>