]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/block-stream/README.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / block-stream / README.md
1 # block-stream
2
3 A stream of blocks.
4
5 Write data into it, and it'll output data in buffer blocks the size you
6 specify, padding with zeroes if necessary.
7
8 ```javascript
9 var block = new BlockStream(512)
10 fs.createReadStream("some-file").pipe(block)
11 block.pipe(fs.createWriteStream("block-file"))
12 ```
13
14 When `.end()` or `.flush()` is called, it'll pad the block with zeroes.