Skip to content
Closed

[SPAM] #67326

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,11 @@ closed until the Node.js process exits, regardless of the specified options.

<!-- YAML
added: v0.9.4
changes:
- version: v26.0.0
pr-url: https://github.com/nodejs/node/pull/60441
description: When `size` is not specified, `read()` now returns one buffered
chunk per call instead of all buffered data.
-->

* `size` {number} Optional argument to specify how much data to read.
Expand All @@ -1573,8 +1578,11 @@ The optional `size` argument specifies a specific number of bytes to read. If
the stream has ended, in which case all of the data remaining in the internal
buffer will be returned.

If the `size` argument is not specified, all of the data contained in the
internal buffer will be returned.
If the `size` argument is not specified, `readable.read()` returns the next
buffered chunk. In object mode, this is the next object, as before. To read all
of the currently buffered data in a single call, use
`readable.read(readable.readableLength)`. In some edge cases it might be
necessary to call `readable.read(0)` first.

The `size` argument must be less than or equal to 1 GiB.

Expand Down
5 changes: 5 additions & 0 deletions src/UNKNOWN.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Metadata-Version: 2.4
Name: UNKNOWN
Version: 0.0.0
License-File: LICENSE
Dynamic: license-file
7 changes: 7 additions & 0 deletions src/UNKNOWN.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LICENSE
README.md
pyproject.toml
src/UNKNOWN.egg-info/PKG-INFO
src/UNKNOWN.egg-info/SOURCES.txt
src/UNKNOWN.egg-info/dependency_links.txt
src/UNKNOWN.egg-info/top_level.txt
1 change: 1 addition & 0 deletions src/UNKNOWN.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

11 changes: 11 additions & 0 deletions src/UNKNOWN.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
api
crypto
dataqueue
dtls
ffi
glob
inspector
permission
quic
res
tracing
Loading