Skip to content

Allow Buffer.copy to take an ArrayBuffer #53700

Open
@ronag

Description

@ronag

What is the problem this feature will solve?

Avoid creating a temporary typed buffer:

Buffer.from(arrayBuffer).copy(dst, 0)

What is the feature you are proposing to solve the problem?

Buffer.copy(arrayBuffer, dst, 0)

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.feature requestIssues that request new features to be added to Node.js.performanceIssues and PRs related to the performance of Node.js.

    Type

    No type

    Projects

    Status

    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions