Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4825dc

Browse filesBrowse files
rbrishabhBethGriggs
authored andcommitted
doc: changes default values for fs.read fns
PR-URL: #39163 Fixes: #39034 Reviewed-By: Nitzan Uziely <linkgoron@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
1 parent 85206b7 commit e4825dc
Copy full SHA for e4825dc

File tree

Expand file treeCollapse file tree

1 file changed

+4
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-8
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+4-8Lines changed: 4 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ added: v10.0.0
258258
* `buffer` {Buffer|TypedArray|DataView} A buffer that will be filled with the
259259
file data read.
260260
* `offset` {integer} The location in the buffer at which to start filling.
261-
**Default:** `0`
262-
* `length` {integer} The number of bytes to read. **Default:**
263-
`buffer.byteLength`
261+
* `length` {integer} The number of bytes to read.
264262
* `position` {integer} The location where to begin reading data from the
265263
file. If `null`, data will be read from the current file position, and
266264
the position will be updated. If `position` is an integer, the current
@@ -2836,11 +2834,9 @@ changes:
28362834
28372835
* `fd` {integer}
28382836
* `buffer` {Buffer|TypedArray|DataView} The buffer that the data will be
2839-
written to. **Default:** `Buffer.alloc(16384)`
2840-
* `offset` {integer} The position in `buffer` to write the data to. **Default:**
2841-
`0`
2842-
* `length` {integer} The number of bytes to read. **Default:**
2843-
`buffer.byteLength`
2837+
written to.
2838+
* `offset` {integer} The position in `buffer` to write the data to.
2839+
* `length` {integer} The number of bytes to read.
28442840
* `position` {integer|bigint} Specifies where to begin reading from in the
28452841
file. If `position` is `null` or `-1 `, data will be read from the current
28462842
file position, and the file position will be updated. If `position` is an

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.