Skip to content

[Question] The difference between Buffer and ArrayBuffer #55569

Open
@richerfu

Description

@richerfu

Affected URL(s)

No response

Description of the problem

I'd like to confirm: Does ArrayBuffer in node allocate shared heap memory for objects, and is Buffer a separate chunk from the heap memory?

If that's the case, isn't the size theoretically allocated by ArrayBuffer equivalent to the size of the heap memory(Maybe 1.7G?), and isn't the theoretical size of buffer max_length?

According to #3012 , there was a related description a long time ago, but now there is no related description in the document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.docIssues and PRs related to the documentations.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions