-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
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 Uint8Arrays in new APIs over Buffers as well as a weigh-in by @sindresorhus saying it is easier to author cross-platform APIs when using Uint8Arrays.
Here is a context #41553 (comment)
That is, the ask here is that Node.js should prefer Uint8Arrays over Buffers in new APIs.
What does everyone think? Should we stick to Buffer (which is a subclass of Uint8Array as a reminder) or prefer Uint8Arrays over buffers when possible in new APIs?
cc @nodejs/buffer @nodejs/streams
Bnaya, sindresorhus, kurisubrooks, ai, Haroenv and 68 morenmrugglin72h, pspeter3 and beemanlin72h, pspeter3, beeman, sacru2red, fulldecent and 1 morelin72h 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.