mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: Uint8Array support in Buffer functions
Buffer.from / new Buffer accept Uint8Array Fixes: https://github.com/nodejs/node/issues/14118 Backport-PR-URL: https://github.com/nodejs/node/pull/21590 PR-URL: https://github.com/nodejs/node/pull/19949 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
This commit is contained in:
1 parent
3ad5e30e05
commit
e1a7244fbd
1 file changed
+2
-3
+2
-3
@@ -6,9 +6,8 @@
|
||||
|
||||
Prior to the introduction of [`TypedArray`], the JavaScript language had no
|
||||
mechanism for reading or manipulating streams of binary data. The `Buffer` class
|
||||
was introduced as part of the Node.js API to make it possible to interact with
|
||||
octet streams in the context of things like TCP streams and file system
|
||||
operations.
|
||||
was introduced as part of the Node.js API to enable interaction with octet
|
||||
streams in TCP streams, file system operations, and other contexts.
|
||||
|
||||
With [`TypedArray`] now available, the `Buffer` class implements the
|
||||
[`Uint8Array`] API in a manner that is more optimized and suitable for Node.js.
|
||||
|
||||
Reference in new issue
Block a user