summaryrefslogtreecommitdiff
path: root/doc/api/zlib.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-21 22:55:51 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 00:06:17 +0300
commitb4fea2a3d62da5e2e3f90d7f2109f02f927f7174 (patch)
treed04d3b624c5bc153b56d926ec2b3fd82689e33cd /doc/api/zlib.md
parente2c3e4727d5899a709f5c421e128a4af2ef626f3 (diff)
downloadandroid-node-v8-b4fea2a3d62da5e2e3f90d7f2109f02f927f7174.tar.gz
android-node-v8-b4fea2a3d62da5e2e3f90d7f2109f02f927f7174.tar.bz2
android-node-v8-b4fea2a3d62da5e2e3f90d7f2109f02f927f7174.zip
doc: add eslint-plugin-markdown
* install eslint-plugin-markdown * add doc/.eslintrc.yaml * add `<!-- eslint-disable rule -->` or `<!-- eslint-disable -->` for the rest of problematic code * .js files in doc folder added to .eslintignore * update Makefile and vcbuild.bat PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/api/zlib.md')
-rw-r--r--doc/api/zlib.md10
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/api/zlib.md b/doc/api/zlib.md
index 73aa81ede9..340470a4e1 100644
--- a/doc/api/zlib.md
+++ b/doc/api/zlib.md
@@ -151,8 +151,9 @@ From `zlib/zconf.h`, modified to node.js's usage:
The memory requirements for deflate are (in bytes):
+<!-- eslint-disable semi -->
```js
-(1 << (windowBits + 2)) + (1 << (memLevel + 9));
+(1 << (windowBits + 2)) + (1 << (memLevel + 9))
```
That is: 128K for windowBits=15 + 128K for memLevel = 8
@@ -167,12 +168,7 @@ const options = { windowBits: 14, memLevel: 7 };
This will, however, generally degrade compression.
-The memory requirements for inflate are (in bytes)
-
-```js
-1 << windowBits;
-```
-
+The memory requirements for inflate are (in bytes) `1 << windowBits`.
That is, 32K for windowBits=15 (default value) plus a few kilobytes
for small objects.