Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c1534e7

Browse filesBrowse files
committed
buffer: backport new buffer constructor APIs
This backports the new `Buffer.alloc()`, `Buffer.allocUnsafe()`, and `Buffer.from()` APIs for v5. Also included in this backport is the change that allows fill('') to zero-fill (as opposed to doing nothing) and the additional `byteOffset` and `length` arguments for `Buffer(arrayBuffer)` and `Buffer.from(arrayBuffer)`. This backport includes the new test cases. This backport *does not* update all of the internal uses of the existing `Buffer()` constructor. This backport also *does not* include the soft deprecation of the existing `Buffer()` constructor. PR-URL: #5763 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 3c02727 commit c1534e7
Copy full SHA for c1534e7

File tree

Expand file treeCollapse file tree

5 files changed

+1944
-122
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

5 files changed

+1944
-122
lines changed
Open diff view settings

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.