Skip to content

Commit e1a7244

Browse files
SheetJSDevrvagg
authored andcommitted
doc: Uint8Array support in Buffer functions
Buffer.from / new Buffer accept Uint8Array Fixes: #14118 Backport-PR-URL: #21590 PR-URL: #19949 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gus Caplan <[email protected]>
1 parent 3ad5e30 commit e1a7244

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/buffer.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
77
Prior to the introduction of [`TypedArray`], the JavaScript language had no
88
mechanism for reading or manipulating streams of binary data. The `Buffer` class
9-
was introduced as part of the Node.js API to make it possible to interact with
10-
octet streams in the context of things like TCP streams and file system
11-
operations.
9+
was introduced as part of the Node.js API to enable interaction with octet
10+
streams in TCP streams, file system operations, and other contexts.
1211

1312
With [`TypedArray`] now available, the `Buffer` class implements the
1413
[`Uint8Array`] API in a manner that is more optimized and suitable for Node.js.

0 commit comments

Comments
 (0)