GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: note that zlib.flush acts after pending writes · nodejs/node@7160229

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • zlib.markdown
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/zlib.markdown‎

Copy file name to clipboardExpand all lines: doc/api/zlib.markdown
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ class of the compressor/decompressor classes.
312312
Flush pending data. Don't call this frivolously, premature flushes negatively
313313
impact the effectiveness of the compression algorithm.
314314

315+
Calling this only flushes data from the internal zlib state, and does not
316+
perform flushing of any kind on the streams level. Rather, it behaves like a
317+
normal call to `.write()`, i.e. it will be queued up behind other pending
318+
writes and will only produce output when data is being read from the stream.
319+
315320
### zlib.params(level, strategy, callback)
316321

317322
Dynamically update the compression level and compression strategy.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.