Requesting example of Typed Array access

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, nodejs
Domain
documentation

Research direction

Start with the linked Nan::TypedArrayContents documentation and inspect the existing node-addon-examples for the appropriate place for a C++ example. Add a focused example showing how to access a Typed Array, with the work complete when the example clearly demonstrates the API and follows the repository's existing example structure.

Written by the indexing model from the issue text.

Description

As of Nan version 2.1.0 there exists Nan::TypedArrayContents, which assists in accessing Typed Arrays. See https://github.com/nodejs/nan/blob/master/doc/v8_misc.md#nantypedarraycontents

It would be very useful to have an example of how to use this. I could make the push request with a new example included so long as I was given some assistance with the coding.

Dominant language
C++
Stars
2.6k
Forks
602
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nodejs/node-addon-examples

All issues in nodejs/node-addon-examples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.