Skip to content

Commit c325e9b

Browse files
committed
Fix #13, zip can now handle concatenated zip files. Also add ability to
use realloc from allocators in BufferManager.
1 parent 71e1954 commit c325e9b

File tree

8 files changed

+125
-32
lines changed

8 files changed

+125
-32
lines changed

docs/file_hashes.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"iopipe/bufpipe/byteSwapper.html":"31ABFBDFBE632BA10E217B3D898E85B1","iopipe/bufpipe/process.html":"C475F411618F1C19062209BB619E28F0","iopipe/buffer/BufferManager.avail.html":"9F1F975248A51CE4D7671C132509F5D9","iopipe/textpipe/convertText.html":"30CD5C77586B98B69D6AC2B4D9C5318A","iopipe/stream.html":"4AB7DA5B1BA87882E15DB8C4A7BCD794","iopipe/buffer/GCNoPointerAllocator.goodAllocSize.html":"6F86B50126CA23845D562E82270032D4","iopipe/traits/release.html":"FC81EBA6930AB393F4959653631A4199","iopipe/stream/IODev.close.html":"55D87BBD59AB1D884C995EE8977CE1EC","iopipe/bufpipe/SimplePipe.release.html":"31A56106D6F3BC79744322F3236950B4","iopipe/buffer/GCNoPointerAllocator.instance.html":"87F53D5394BAC1392931A6CBBB8CAC72","iopipe/buffer/BufferManager.releaseFront.html":"351CECF49F1B7B85EDBF485CFB87EF91","iopipe/stream/zeroDev.html":"8137126E46A6E840C3D96F5DAA300014","iopipe/valve.html":"C8CAB0487C058B92A5D7A162479ECE11","iopipe/textpipe/encodeText.html":"84ED364571C95E84642541CD7800839A","iopipe/zip/CompressionFormat.html":"A5091AB18CD284EAC2D1341E41E50C32","iopipe/stream/IODev.handle.html":"66BE3BE95DBFD3C8882591272834351A","iopipe/stream/IODev.html":"62268BC6B3A021098E3B039299527617","iopipe/stream/IODev.read.html":"B95B41E50461FC99EA33DFFDE2B830A5","iopipe/traits/WindowType.html":"14307E6A6D9038DD95CA1F709C387F0A","iopipe/stream/NullDev.read.html":"F931FBC41DA62EF2FB5C0D36BB9F2EE3","iopipe/traits/hasValve.html":"2B10EF60A21940F6E39098E5EC91F7D8","iopipe/buffer/GCNoPointerAllocator.expand.html":"969964BACE3569BF3EFBA711D38F14CC","iopipe/bufpipe/outputPipe.html":"A3F8699CF027D3A5777F1C17D58CA026","iopipe/traits.html":"47A33910626EF59B15D0627C29C87B76","iopipe/bufpipe/iosrc.html":"3B4689280C03B702122AB870CFD93416","iopipe/buffer/BufferManager.releaseBack.html":"12F24F57265DAB64669EB41BF7D8FA07","iopipe/textpipe/delimitedText.html":"FFC4EEEAFD3C8E1E6216ECACBBE13577","iopipe/valve/simpleValve.html":"F7027B0FE106D0D4EA34206DD77C52E3","iopipe/textpipe.html":"906E122FEC0BAD7E422D43E5982835E6","iopipe/textpipe/byLineRange.html":"0FB2C927AC7325091D1A6D113ED650A2","iopipe/textpipe/byLine.html":"F7CCE772E568B718FA6405DEBC707622","iopipe/bufpipe/SimplePipe.html":"6AAA647B79DBA0F4255FDDD118E88B24","iopipe/bufpipe/asInputRange.html":"ADE07A5BA7FBC142031798D0BB2F39CD","iopipe/buffer.html":"8E7C93981324140CBE3AEDFCBEE78896","iopipe/stream/IODev.seekAbsolute.html":"405F1F04DEB8247845B965D4AC612673","iopipe/stream/IODev.write.html":"BF1394B537AD1A0042961181F977074D","iopipe/stream/nullDev.html":"4EBB02686759AB82678A93EE8D67E28B","iopipe/stream/IODev.seekEnd.html":"9B99472F3C46FE2E65CCD27154DEA87A","iopipe/traits/implementValve.html":"649BC07CDA97B939EDE36B98AF985D35","iopipe/bufpipe.html":"6F364678C013FBB4AA89322ADA6FA82D","iopipe/textpipe/runEncoded.html":"82D6D43123B6BCD527926E0B7DFF20B6","iopipe/bufpipe/SimplePipe.extend.html":"B3F5A81C84D730B0B07BF9F552EE40CC","iopipe/buffer/GCNoPointerAllocator.allocate.html":"CF6014F29C47ED0E6B3676B3A33F97B6","iopipe/buffer/BufferManager.html":"86044C33CF9EF0713FA496225D584FD9","iopipe/textpipe/byDelimRange.html":"B1D1BF9A2027BE7EFAA74DDC5885F5C0","iopipe/zip/unzip.html":"379E87F2812A7EA5165B067CE8908BE7","iopipe/textpipe/textConverter.html":"5609D12C7D39CDF5B6598ABE32288FE9","iopipe/bufpipe/SimplePipe.chain.html":"16568417CB63EFD589E289C24EEA7403","iopipe/stream/openDev.html":"7258BA08C99E8761CB4DADC1157F42A4","iopipe/zip/unzipSrc.html":"A2D3905499FC3C86652188357BC0D8ED","iopipe/buffer/BufferManager.capacity.html":"EA8F3AD293C43F960F539DF88F8786A0","index.html":"063D02167A91942B9BF008662331161C","iopipe/stream/IODev.put.html":"E14CB7C18429EAC73A34E6DA7644DD2A","iopipe/textpipe/UTFType.html":"6280FD6861F1FD07DF0081A9933A5B34","iopipe/bufpipe/bufd.html":"604172AC5627630299186CB046213158","iopipe/textpipe/assumeText.html":"10416F77760ADB85FD108724BD697997","iopipe/traits/valveCount.html":"B21A5B43CCEF80A04CFDC72936602E5E","iopipe/buffer/BufferManager.window.html":"81DE0A83511C1B65BBEA27109D318E4D","iopipe/zip/zipSrc.html":"1FBDC9823D6BAAD9DF3E906F5E2893E3","iopipe/bufpipe/ensureElems.html":"AEC0AB3593CF7FEC96673F09710B74E1","iopipe/valve/holdingValve.html":"239CAC6E7F26AF3420017EE1340D5C1E","iopipe/valve/push.html":"95F2FD15F0FC8F0F4272A7CD57C17831","iopipe/textpipe/CodeUnit.html":"A28B0D68EFADC6ECC137CA776AAC71ED","iopipe/textpipe/runWithEncoding.html":"9DF14BABD02175590D1E309F57358645","iopipe/zip.html":"0F5D522B104478313202996688861F2F","iopipe/valve/holdingLoop.html":"EEE28CC9516B80F51204554EC9758AF6","iopipe/traits/window.html":"050900DF0C3F050AE1CC3071FCA203D4","iopipe/bufpipe/SimplePipe.this.html":"3A01CD81FD308F5FFFDD2C42F3A69AF2","iopipe/traits/isIopipe.html":"D9337D6BDFF6D31BE785794AE23F8D83","iopipe/buffer/BufferManager.extend.html":"6BFFEB5D2D944AF673298B1A5C25E89D","iopipe/traits/extend.html":"E7E4F1C5DCC64F33D14E4B052A32F9C8","sitemap.xml":"8D928FEB5FEF54DFEE7E313C17998AE6","iopipe/buffer/GCNoPointerAllocator.html":"B7AE2C73C0E97B4131999F633A6EC000","iopipe/stream/IODev.seekCurrent.html":"84031F891313BE1CFBB80DB698C22BAE","iopipe/bufpipe/SimplePipe.window.html":"5240E6C6089165C43AE60709F410F16F","iopipe/stream/ZeroDev.html":"8176DBF4FCAA266593AC4D41718C8686","iopipe/textpipe/detectBOM.html":"0D4DBD18ACC25B946A093AEEE0537224","iopipe/textpipe/textOutput.html":"1765AEAD1497204E74622DF6DE768622","iopipe/stream/IODev.this.html":"12C98CF82A280CA5404310BFB84F167C","iopipe/textpipe/ensureDecodeable.html":"C33CA0DA7E42BABE1AE92F2D7481DFDA","iopipe/zip/zip.html":"DB02092F9230463860A9EEEB4F4089B4","iopipe/stream/NullDev.html":"2B51D2E68FD425FDC36BE3F20B41AD2A","symbols.js":"6511C8CCB6511E3B022A44B7A67EF866","iopipe/bufpipe/arrayCastPipe.html":"83383F3B9E0C362C3F4AB533E9362718"}
1+
{"iopipe/bufpipe/byteSwapper.html":"31ABFBDFBE632BA10E217B3D898E85B1","iopipe/bufpipe/process.html":"C475F411618F1C19062209BB619E28F0","iopipe/buffer/BufferManager.avail.html":"9F1F975248A51CE4D7671C132509F5D9","iopipe/textpipe/convertText.html":"30CD5C77586B98B69D6AC2B4D9C5318A","iopipe/stream.html":"4AB7DA5B1BA87882E15DB8C4A7BCD794","iopipe/buffer/GCNoPointerAllocator.goodAllocSize.html":"6F86B50126CA23845D562E82270032D4","iopipe/traits/release.html":"FC81EBA6930AB393F4959653631A4199","iopipe/stream/IODev.close.html":"55D87BBD59AB1D884C995EE8977CE1EC","iopipe/bufpipe/SimplePipe.release.html":"31A56106D6F3BC79744322F3236950B4","iopipe/buffer/GCNoPointerAllocator.instance.html":"87F53D5394BAC1392931A6CBBB8CAC72","iopipe/buffer/BufferManager.releaseFront.html":"351CECF49F1B7B85EDBF485CFB87EF91","iopipe/stream/zeroDev.html":"8137126E46A6E840C3D96F5DAA300014","iopipe/valve.html":"C8CAB0487C058B92A5D7A162479ECE11","iopipe/textpipe/encodeText.html":"84ED364571C95E84642541CD7800839A","iopipe/zip/CompressionFormat.html":"A5091AB18CD284EAC2D1341E41E50C32","iopipe/stream/IODev.handle.html":"66BE3BE95DBFD3C8882591272834351A","iopipe/stream/IODev.html":"62268BC6B3A021098E3B039299527617","iopipe/stream/IODev.read.html":"B95B41E50461FC99EA33DFFDE2B830A5","iopipe/traits/WindowType.html":"14307E6A6D9038DD95CA1F709C387F0A","iopipe/stream/NullDev.read.html":"F931FBC41DA62EF2FB5C0D36BB9F2EE3","iopipe/traits/hasValve.html":"2B10EF60A21940F6E39098E5EC91F7D8","iopipe/buffer/GCNoPointerAllocator.expand.html":"969964BACE3569BF3EFBA711D38F14CC","iopipe/bufpipe/outputPipe.html":"A3F8699CF027D3A5777F1C17D58CA026","iopipe/traits.html":"47A33910626EF59B15D0627C29C87B76","iopipe/bufpipe/iosrc.html":"4326A6A37455F9ED38C02CB4B7C8673D","iopipe/buffer/BufferManager.releaseBack.html":"12F24F57265DAB64669EB41BF7D8FA07","iopipe/textpipe/delimitedText.html":"FFC4EEEAFD3C8E1E6216ECACBBE13577","iopipe/valve/simpleValve.html":"F7027B0FE106D0D4EA34206DD77C52E3","iopipe/textpipe.html":"906E122FEC0BAD7E422D43E5982835E6","iopipe/textpipe/byLineRange.html":"0FB2C927AC7325091D1A6D113ED650A2","iopipe/textpipe/byLine.html":"F7CCE772E568B718FA6405DEBC707622","iopipe/bufpipe/SimplePipe.html":"6AAA647B79DBA0F4255FDDD118E88B24","iopipe/bufpipe/asInputRange.html":"ADE07A5BA7FBC142031798D0BB2F39CD","iopipe/buffer.html":"4235CFEE05019CB3B53634DE958E9A53","iopipe/stream/IODev.seekAbsolute.html":"405F1F04DEB8247845B965D4AC612673","iopipe/stream/IODev.write.html":"BF1394B537AD1A0042961181F977074D","iopipe/stream/nullDev.html":"4EBB02686759AB82678A93EE8D67E28B","iopipe/stream/IODev.seekEnd.html":"9B99472F3C46FE2E65CCD27154DEA87A","iopipe/traits/implementValve.html":"649BC07CDA97B939EDE36B98AF985D35","iopipe/bufpipe.html":"6F364678C013FBB4AA89322ADA6FA82D","iopipe/textpipe/runEncoded.html":"82D6D43123B6BCD527926E0B7DFF20B6","iopipe/bufpipe/SimplePipe.extend.html":"B3F5A81C84D730B0B07BF9F552EE40CC","iopipe/buffer/GCNoPointerAllocator.allocate.html":"CF6014F29C47ED0E6B3676B3A33F97B6","iopipe/buffer/BufferManager.html":"C43C09D8DAEAD2AE568ED696DAB2089B","iopipe/textpipe/byDelimRange.html":"B1D1BF9A2027BE7EFAA74DDC5885F5C0","iopipe/zip/unzip.html":"379E87F2812A7EA5165B067CE8908BE7","iopipe/textpipe/textConverter.html":"5609D12C7D39CDF5B6598ABE32288FE9","iopipe/bufpipe/SimplePipe.chain.html":"16568417CB63EFD589E289C24EEA7403","iopipe/stream/openDev.html":"7258BA08C99E8761CB4DADC1157F42A4","iopipe/zip/unzipSrc.html":"A2D3905499FC3C86652188357BC0D8ED","iopipe/buffer/BufferManager.capacity.html":"EA8F3AD293C43F960F539DF88F8786A0","index.html":"063D02167A91942B9BF008662331161C","iopipe/stream/IODev.put.html":"E14CB7C18429EAC73A34E6DA7644DD2A","iopipe/textpipe/UTFType.html":"6280FD6861F1FD07DF0081A9933A5B34","iopipe/bufpipe/bufd.html":"604172AC5627630299186CB046213158","iopipe/textpipe/assumeText.html":"10416F77760ADB85FD108724BD697997","iopipe/traits/valveCount.html":"B21A5B43CCEF80A04CFDC72936602E5E","iopipe/buffer/BufferManager.window.html":"81DE0A83511C1B65BBEA27109D318E4D","iopipe/zip/zipSrc.html":"1FBDC9823D6BAAD9DF3E906F5E2893E3","iopipe/bufpipe/ensureElems.html":"EC07F270C6EC79D5B9460CC61909E7BB","iopipe/valve/holdingValve.html":"239CAC6E7F26AF3420017EE1340D5C1E","iopipe/valve/push.html":"95F2FD15F0FC8F0F4272A7CD57C17831","iopipe/textpipe/CodeUnit.html":"A28B0D68EFADC6ECC137CA776AAC71ED","iopipe/textpipe/runWithEncoding.html":"9DF14BABD02175590D1E309F57358645","iopipe/zip.html":"0F5D522B104478313202996688861F2F","iopipe/valve/holdingLoop.html":"EEE28CC9516B80F51204554EC9758AF6","iopipe/traits/window.html":"050900DF0C3F050AE1CC3071FCA203D4","iopipe/bufpipe/SimplePipe.this.html":"3A01CD81FD308F5FFFDD2C42F3A69AF2","iopipe/traits/isIopipe.html":"D9337D6BDFF6D31BE785794AE23F8D83","iopipe/buffer/BufferManager.extend.html":"6BFFEB5D2D944AF673298B1A5C25E89D","iopipe/traits/extend.html":"E7E4F1C5DCC64F33D14E4B052A32F9C8","sitemap.xml":"8D928FEB5FEF54DFEE7E313C17998AE6","iopipe/buffer/GCNoPointerAllocator.html":"B7AE2C73C0E97B4131999F633A6EC000","iopipe/stream/IODev.seekCurrent.html":"84031F891313BE1CFBB80DB698C22BAE","iopipe/bufpipe/SimplePipe.window.html":"5240E6C6089165C43AE60709F410F16F","iopipe/stream/ZeroDev.html":"8176DBF4FCAA266593AC4D41718C8686","iopipe/textpipe/detectBOM.html":"0D4DBD18ACC25B946A093AEEE0537224","iopipe/textpipe/textOutput.html":"1765AEAD1497204E74622DF6DE768622","iopipe/stream/IODev.this.html":"12C98CF82A280CA5404310BFB84F167C","iopipe/textpipe/ensureDecodeable.html":"C33CA0DA7E42BABE1AE92F2D7481DFDA","iopipe/zip/zip.html":"DB02092F9230463860A9EEEB4F4089B4","iopipe/stream/NullDev.html":"2B51D2E68FD425FDC36BE3F20B41AD2A","symbols.js":"6511C8CCB6511E3B022A44B7A67EF866","iopipe/bufpipe/arrayCastPipe.html":"83383F3B9E0C362C3F4AB533E9362718"}

docs/iopipe/buffer.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
<section></section><section><h2>Structs</h2><table>
1212
<col class="caption"/>
13-
<tr><th>Name</th><th>Description</th></tr><tr><td><code><a id="BufferManager" class="[&quot;public&quot;]" href="../iopipe/buffer/BufferManager.html">BufferManager</a></code></td><td>Array based buffer manager. Uses custom allocator to get the data.
13+
<tr><th>Name</th><th>Description</th></tr><tr><td><code><a id="BufferManager" class="[&quot;public&quot;]" href="../iopipe/buffer/BufferManager.html">BufferManager</a></code></td><td>Array based buffer manager. Uses custom allocator to get the data. Limits
14+
growth to doubling.
1415
</td></tr><tr><td><code><a id="GCNoPointerAllocator" class="[&quot;public&quot;]" href="../iopipe/buffer/GCNoPointerAllocator.html">GCNoPointerAllocator</a></code></td><td>GC allocator that creates blocks of non-pointer data (unscanned). This also
1516
does not support freeing data, relying on the GC to do so.
1617
</td></tr></table></section><footer><table class="license-info"><tr><th>Authors</th><td><p>Steven Schveighoffer, Dmitry Olshansky

docs/iopipe/buffer/BufferManager.html

+13-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
<link rel="stylesheet" href="../../prettify/prettify.css" type="text/css"/>
66
<script type="text/javascript" src="../../scripts/jquery.js">/**/</script><script type="text/javascript" src="../../scripts/ddox.js">/**/</script></head><body onload="setupDdox();"><nav id="main-nav"><noscript><p style="color: red">The search functionality needs JavaScript enabled</p></noscript><div id="symbolSearchPane" style="display: none"><form action="#" method="GET">
77
<input id="symbolSearch" type="text" name="q" placeholder="Search for symbols" autocomplete="off" onchange="performSymbolSearch(40);" onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();"/></form><ul id="symbolSearchResults" class="symbolList" style="display: none"></ul><script type="application/javascript" src="../../symbols.js"></script><script type="application/javascript">var symbolSearchRootDir = "../../";
8-
$('#symbolSearchPane').show();</script></div><ul class="tree-view"><li class="tree-view "><div class="package ">iopipe</div><ul class="tree-view"><li><div class="module selected"><a href="../../iopipe/buffer.html">buffer</a></div></li><li><div class="module "><a href="../../iopipe/bufpipe.html">bufpipe</a></div></li><li><div class="module "><a href="../../iopipe/stream.html">stream</a></div></li><li><div class="module "><a href="../../iopipe/textpipe.html">textpipe</a></div></li><li><div class="module "><a href="../../iopipe/traits.html">traits</a></div></li><li><div class="module "><a href="../../iopipe/valve.html">valve</a></div></li><li><div class="module "><a href="../../iopipe/zip.html">zip</a></div></li></ul></li></ul></nav><div id="main-contents"><h1>Struct BufferManager</h1><p>Array based buffer manager. Uses custom allocator to get the data.
9-
</p><div class="prototype"><code class="lang-d"><div class="single-prototype"><span class="kwd">struct</span> <span class="typ">BufferManager</span>(T, Allocator)
10-
<span class="pun">;</span></div></code></div><section><p>Based on concept by Dmitry Olshansky
11-
</p>
12-
</section>
8+
$('#symbolSearchPane').show();</script></div><ul class="tree-view"><li class="tree-view "><div class="package ">iopipe</div><ul class="tree-view"><li><div class="module selected"><a href="../../iopipe/buffer.html">buffer</a></div></li><li><div class="module "><a href="../../iopipe/bufpipe.html">bufpipe</a></div></li><li><div class="module "><a href="../../iopipe/stream.html">stream</a></div></li><li><div class="module "><a href="../../iopipe/textpipe.html">textpipe</a></div></li><li><div class="module "><a href="../../iopipe/traits.html">traits</a></div></li><li><div class="module "><a href="../../iopipe/valve.html">valve</a></div></li><li><div class="module "><a href="../../iopipe/zip.html">zip</a></div></li></ul></li></ul></nav><div id="main-contents"><h1>Struct BufferManager</h1><p>Array based buffer manager. Uses custom allocator to get the data. Limits
9+
growth to doubling.
10+
</p><div class="prototype"><code class="lang-d"><div class="single-prototype"><span class="kwd">struct</span> <span class="typ">BufferManager</span>(T, Allocator, <span class="typ">ulong</span> floorSize<span class="pln"> </span><span class="pun">= </span><span class="lit">8192</span>)
11+
<span class="pun">;</span></div></code></div><section></section>
1312
<section><h2>Methods</h2><table>
1413
<col class="caption"/>
1514
<tr><th>Name</th><th>Description</th></tr><tr><td><a href="../../iopipe/buffer/BufferManager.avail.html" class="[&quot;public&quot;]"><code>avail</code></a></td><td></td></tr><tr><td><a href="../../iopipe/buffer/BufferManager.capacity.html" class="[&quot;public&quot;]"><code>capacity</code></a></td><td></td></tr><tr><td><a href="../../iopipe/buffer/BufferManager.extend.html" class="[&quot;public&quot;]"><code>extend</code></a></td><td>Add more data to the window of currently valid data. To avoid expensive
@@ -22,6 +21,15 @@
2221
should no longer be used.
2322
</td></tr><tr><td><a href="../../iopipe/buffer/BufferManager.window.html" class="[&quot;public&quot;]"><code>window</code></a></td><td>The window of currently valid data
2423
</td></tr></table></section>
24+
<section><h2>Parameters</h2>
25+
<table><col class="caption"><tr><th>Name</th><th>Description</th></tr>
26+
<tr><td id="T">T</td><td> The type of the elements the buffer manager will use</td></tr>
27+
<tr><td id="Allocator">Allocator</td><td> The allocator to use for adding more elements</td></tr>
28+
<tr><td id="floorSize">floorSize</td><td> The size that can be freely allocated before growth is restricted to 2x.
29+
30+
Based on concept by Dmitry Olshansky</td></tr>
31+
</table>
32+
</section>
2533

2634
<footer><table class="license-info"><tr><th>Authors</th><td><p>Steven Schveighoffer, Dmitry Olshansky
2735
</p>

docs/iopipe/bufpipe/ensureElems.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<br/>
1414
&nbsp;&nbsp;<span class="kwd">ref </span><span class="typ">Chain</span> <span class="pln">chain</span><span class="pun">,</span>
1515
<br/>
16-
&nbsp;&nbsp;<span class="pln">size_t</span> <span class="pln">elems</span>
16+
&nbsp;&nbsp;<span class="pln">size_t</span> <span class="pln">elems</span> <span class="pun">=</span> <span class="pln">size_t<wbr/></span><span class="pun">.</span><span class="pln">max</span>
1717
<br/>
1818
<span class="pun">)</span><span class="pun">;</span></div></code></div><section><p>This is useful if you need a certain number of elements in the pipe before
1919
you can process any more data.
@@ -23,7 +23,8 @@
2323
<section><h2>Parameters</h2>
2424
<table><col class="caption"><tr><th>Name</th><th>Description</th></tr>
2525
<tr><td id="chain">chain</td><td> The pipe to work on.</td></tr>
26-
<tr><td id="elems">elems</td><td> The number of elements to ensure are in the window.</td></tr>
26+
<tr><td id="elems">elems</td><td> The number of elements to ensure are in the window. If
27+
omitted, all elements are extended.</td></tr>
2728
</table>
2829
</section>
2930
<section><h2>Returns</h2>

docs/iopipe/bufpipe/iosrc.html

+11
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,19 @@
1515
<span class="pun">)</span><span class="pun">;</span></div></code></div><section><p>It is advisable to use a template or lambda that does not require a closure,
1616
and is not a delegate from a struct that might move.
1717
</p>
18+
19+
<p> The result is also alias-this'd to the chain, so it can be used as an iopipe also.
20+
</p>
1821
</section>
1922

23+
<section><h2>Parameters</h2>
24+
<table><col class="caption"><tr><th>Name</th><th>Description</th></tr>
25+
<tr><td id="fun">fun</td><td> Function that accepts as its first parameter the input chain (of
26+
type Chain), and as its second parameter, the buffer to read into. Only
27+
buffer types that are supported are used.</td></tr>
28+
<tr><td id="c">c</td><td> The chain to read from</td></tr>
29+
</table>
30+
</section>
2031

2132
<footer><table class="license-info"><tr><th>Authors</th><td><p>Steven Schveighoffer
2233
</p>

0 commit comments

Comments
 (0)