From e1a7244fbd2a1ea1293dc9d37679623fc784da88 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Thu, 12 Apr 2018 01:46:48 -0400 Subject: [PATCH] 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 Reviewed-By: Vse Mozhet Byt Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Gus Caplan --- doc/api/buffer.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index b5882254213..6f31cbdc55c 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -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.