Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Not clear from documentation how to use a Typed Array eg Float32Array in C++ addon #9247

Closed
metabench opened this issue Feb 18, 2015 · 1 comment

Comments

@metabench
Copy link

Also, the 'docs' part of node.js does not link to addon documentation as far as I can tell. I've used Google to find information on writing addons.

I have not seen anything on how to use a typed array, within C++, that has been passed in as an argument.

Advice on doing that would be appreciated, but it's worth having in the docs too.

@matthewbauer
Copy link

I've been running into the same problem. I think that v8's API should work find but adding something on top of Node like libchromiumcontent or libwebkit will run into some issues with conflicting versions of ArrayBuffers.

richardlau pushed a commit to ibmruntimes/node that referenced this issue Jan 21, 2017
Fix the explanation which stated that write() would return false if
highWaterMark is exceeded to correctly state that false is returned
once highWaterMark is reached. See nodejs#9247.

PR-URL: nodejs/node#10582
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
jBarz pushed a commit to ibmruntimes/node that referenced this issue May 11, 2017
Fix the explanation which stated that write() would return false if
highWaterMark is exceeded to correctly state that false is returned
once highWaterMark is reached. See nodejs#9247.

PR-URL: nodejs/node#10582
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@Trott Trott closed this as completed Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants