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 5e1321a

Browse filesBrowse files
duncproruyadorno
authored andcommitted
buffer: document concat zero-fill
PR-URL: #55562 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>
1 parent ba9d539 commit 5e1321a
Copy full SHA for 5e1321a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.md‎

Copy file name to clipboardExpand all lines: doc/api/buffer.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,8 @@ in `list` by adding their lengths.
10411041

10421042
If `totalLength` is provided, it is coerced to an unsigned integer. If the
10431043
combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
1044-
truncated to `totalLength`.
1044+
truncated to `totalLength`. If the combined length of the `Buffer`s in `list` is
1045+
less than `totalLength`, the remaining space is filled with zeros.
10451046

10461047
```mjs
10471048
import { Buffer } from 'node:buffer';

0 commit comments

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