Skip to content

Implement napi_get_buffer_info #66

Description

@kraenhansen
No description provided.

Activity

  1. self-assigned this
    on May 14, 2025
  2. kraenhansen commented on Aug 12, 2026

    @kraenhansen
    CollaboratorAuthor

    Implemented in packages/host/cpp/RuntimeNodeApi.cpp: napi_get_buffer_info returns the backing data pointer and byte length, handling both the ArrayBuffer and the Uint8Array view the host's buffer functions hand out.

    Hermes' first-party Node-API also implements it (API/napi/hermes_napi_buffer.cpp, adopted in #372); the host's definition currently shadows it in the generated injector.

    Covered by packages/node-addon-examples/tests/buffers (a port of Node's test_buffer). The remaining fidelity gap versus a real Buffer stays tracked in #171.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions