On Sat, Oct 27, 2012 at 9:55 PM, Henri Tuhola <[email protected]> wrote:
> I'd need to pass some binary data out of an addon, but node.js addon
> documentation doesn't seem to cover it.
>
> This is what I'm working on: https://github.com/cheery/node-video
>
> node-video needs the buffer objects to provide composite/native window
> handles that can be transferred over unix sockets.
>
> The link mentions webgl. There seems to be two authors who have tried to
> provide WebGL bindings to node.js a year ago, but I don't know whether
> either of their approach to TypedArray or Image do any good. Some of the
> bindings can be copied along though. :)

node.js supports typed arrays.  This issue[1] contains an example on
how to interact with them from C++ code.  There is also the Buffer
class, check src/node_buffer.h for details.

[1] https://github.com/joyent/node/issues/4201

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to