-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Open
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.
Description
There was a suggestion by @jasnell to use Uint8Array
s in new APIs over Buffer
s as well as a weigh-in by @sindresorhus saying it is easier to author cross-platform APIs when using Uint8Array
s.
Here is a context #41553 (comment)
That is, the ask here is that Node.js should prefer Uint8Array
s over Buffer
s in new APIs.
What does everyone think? Should we stick to Buffer
(which is a subclass of Uint8Array
as a reminder) or prefer Uint8Array
s over buffers when possible in new APIs?
cc @nodejs/buffer @nodejs/streams
Bnaya, sindresorhus, kurisubrooks, ai, Haroenv and 67 morenmrugglin72h, pspeter3 and beemanlin72h, pspeter3, beeman, sacru2red and fulldecentlin72h and beemanBnaya, omril1, siygle, SukkaW, yvele and 1 more
Metadata
Metadata
Assignees
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.